@import url('base.css');
@import url('slider.css');
@import url('burger.css');

header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #1B1B1BD4;
    z-index: 100;
}

header .hedaer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

header .hedaer-content a {
    color: #fff;
    text-decoration: none;
}

header .hedaer-content a:hover {
    text-decoration: underline;
}

header nav {
    /* ПК: показываем меню всегда */
    opacity: 1;
    pointer-events: auto;
}

header nav ul {
    display: flex;
    gap: 15px;
    padding: 0;
}

header nav ul li {
    list-style-type: none;
}

.logo {
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.burger {
    width: 35px;
    display: none;
    flex-direction: column;
    row-gap: 5px;
    transform: rotate(0deg);
    transition: all .4s ease-out;
}

.burger-active {
    transform: rotate(90deg);
}

.burger span {
    position: relative;
    display: block;
    width: 100%;
    min-height: 5px;
    border-radius: 5px;
    background-color: #fff;
}

@media (max-width: 992px) {
    header nav {
        position: fixed;
        top: 87px;
        left: 0;
        width: 100%;
        padding: 15px 20px;
        background-color: #1B1B1BD4;
        opacity: 0;
        pointer-events: none;
        transition: all .2s ease-out;
    }

    header .nav-active {
        opacity: 1;
        pointer-events: auto;
    }

    header nav ul {
        flex-direction: column;
        text-align: left;
    }

    .burger {
        display: flex;
    }
}


main{
    margin-top: 80px;
}

.text-section-2 {
    background: rgb(113,113,113);
    background: linear-gradient(0deg, rgba(113,113,113,1) 15%, rgba(0,0,0,0) 100%);
}

.section-text-block {
    position: relative;
    height: calc(100vh - 80px);
    display: flex;
    justify-content: center;
    flex-direction: column;
    row-gap: 100px;
}

.section-text-block h1,
.section-text-block span {
    color: #fff;
    font-weight: bold;
}

.section-text-block .text-content-block {
    color: #fff;
    max-width: 550px;
}

.section-text-block .text-content-block a {
    display: block;
    background-color: #fff;
    text-decoration: none;
    color: #000;
    width: 300px;
    margin: 15px 0;
    padding: 20px 0;
    text-align: center;
    border-radius: 5px;
    border: 2px solid #fff;
    transition: all .2s ease-out;
}

.section-text-block .text-content-block a:hover {
    background-color: transparent;
    color: #fff;
}

.section-text-row-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    height: auto; /* изменено с 50vh */
}

.section-text-row-block h2 {
    flex: 1;
    color: #fff;
    text-transform: uppercase;
}

.section-text-row-block .text-content-row-block {
    flex: 2;
    min-width: 300px;

    background: rgba(0, 0, 0, .3);
    border-radius: 5px;

    line-height: 25px;
    color: #fff;
    padding: 10px;

    overflow: hidden;
    transition: max-height 0.5s ease;
}

/* Состояния свёрнутого и раскрытого блока */
.collapsible-container.collapsed {
    max-height: 180px; /* ограничение по высоте */
}

.collapsible-container.expanded {
    max-height: 1000px; /* запас по высоте, можно больше */
}

/* Кнопка "Показать ещё" */
.toggle-btn {
    margin-top: 10px;
    background: #fff;
    color: #000;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* На больших экранах показываем всё сразу, скрываем кнопку */
@media (min-width: 769px) {
    .toggle-btn {
        display: none;
    }

    .collapsible-container {
        max-height: none !important;
        overflow: visible;
    }
}

.main-bg-image {
    position: absolute;
    object-fit: cover;
    top: 0;
    left: 0;
    width: 100%;
    height: 155vh;
    z-index: -1;
}

@media (max-width: 1400px) {
    .section-text-block {
        row-gap: 50px;
    }
}

@media (max-width: 1200px) {
    .section-text-row-block {
        flex-direction: column;
        row-gap: 15px;
        flex-wrap: nowrap;
    }

    .section-text-row-block h2 {
        position: relative;
        width: 100%;
        text-align: left;
        flex: 0;
    }
}
/* Основной текстовый блок — без изменений */
.text-content-row-block {
    position: relative; /* чтобы .toggle-btn-wrapper позиционировалась относительно */
    flex: 2;
    min-width: 300px;
    background: rgba(0, 0, 0, .3);
    border-radius: 5px;
    line-height: 25px;
    color: #fff;
    padding: 10px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

/* Кнопка и подложка снизу блока */
.toggle-btn-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,1.2), rgba(0,0,0,0.2));
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    z-index: 1;
}


/* Сам текст "Показать ещё" */
.toggle-btn {
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
}

/* Когда текст раскрыт — убираем подложку */
.collapsible-container.expanded {
    padding-bottom: 60px; /* добавляем место снизу, где раньше была кнопка */
}
@media (min-width: 769px) {
    .toggle-btn-wrapper {
        display: none;
    }

    .text-content-row-block {
        max-height: none !important;
        overflow: visible;
    }
}
.reason-block{
    background: rgb(113,113,113);
    padding-bottom: 100px;
}

.reason-block h2{
    color: #fff;
    margin-bottom: 100px;
}

.reason-cards{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.reason-card-item{
    width: 240px;
    height: 320px;
    display: flex;
    flex-direction: column;
    row-gap: 25px;
    align-items: center;
    border: 1px solid #fff;
    border-radius: 20px;
    padding: 25px;
    color: #fff;
    background: rgba(0, 0, 0, .3);
    transition: all .3s ease-out;
}

.reason-card-item:hover{
    height: 355px;
    background: rgba(0, 0, 0, .1);
}

.reason-card-item:hover span p{
    display: block;
}

.reason-card-item img{
    width: 100px;
    flex: 1;
    background-size: contain;
    object-fit: contain;
}

.reason-card-item span{
    text-align: center;
}

.reason-card-item span p{
    display: none;
    font-size: 14px;
    margin-top: 10px;
}

@media (max-width: 1200px) {
    .reason-block{
        padding-top: 100px;
    }
}

@media (max-width: 546px) {
    .reason-cards{
        justify-content: center;
    }

    .reason-block h2 {
        margin-top: 40px;
    }

    .reason-card-item:hover{
        height: 320px;
        background: rgba(0, 0, 0, .3);
    }
    
    .reason-card-item span p{
        display: block;
    }
}

.art-objects {
    margin-top: 100px;
    background-image: url('images/lines1.svg');
}

.art-objects-first-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 75px;
    margin-top: 100px;
}

.art-objects-first-block img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
}

.art-objects-first-block .art-objects-text-block {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    row-gap: 10px;
}

.art-objects-text {
    flex: 1;
    display: flex;
    align-items: flex-end;
}

.art-objects-first-block .img-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    height: auto;
}

.art-objects-first-block .img-2 {
    flex: 2;
}

.art-objects-first-block .img-3 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.grid-img-block {
    position: relative;
}

.grid-img-block:hover .image-text {
    opacity: 1;
}

.grid-img-block:hover img {
    filter: blur(5px);
    transition: all .2s ease-out;
}

.image-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    row-gap: 10px;

    background: rgba(0, 0, 0, 0.4); /* сделан более прозрачным */
    padding: 35px;
    color: #fff;

    opacity: 0;
    box-sizing: border-box;
    transition: opacity .3s ease-in-out;
    cursor: pointer;
}

.image-text h2 {
    margin: 0;
    font-size: 20px;
}

.image-text p {
    margin: 0;
    font-size: 16px;
}

@media (max-width: 992px) {
    .art-objects-first-block {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .grid-img-block:hover .image-text {
        opacity: 1;
    }

    .grid-img-block:hover img {
        filter: blur(0);
    }

    .image-text {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .image-text {
        font-size: 14px;
        padding: 15px;

        /* Тёмная тень снизу, плавно исчезающая вверх */
        background: linear-gradient(to top, rgba(0, 0, 0, 1.5) 0%, rgba(0, 0, 0, .8) 30%, rgba(0, 0, 0, 0.0) 60%);

        color: #fff;
    }

    .image-text h2 {
        font-size: 16px;
    }

    .image-text p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .image-text {
        width: 100%;
        padding: 15px;
    }
}

.art-objects-second-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 100px;
    gap: 75px;
}

.art-objects-second-block img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
}

.art-objects-second-block .img-1,
.art-objects-second-block .img-3 {
    grid-column: 1 / 3;
}

@media (max-width: 992px) {
    .art-objects-second-block {
        display: flex;
        flex-direction: column;
        gap: 25px;
        margin-top: 120px;
    }

    .art-objects-second-block img {
        background-size: 130%;
    }
}


.form-section{
    margin-top: 150px;
    padding-top: 100px;
    background: radial-gradient(circle, rgba(63,94,251,0) 0%, rgba(27,27,27,1) 90%);
}

.form-section-content-border-box{
    
    border-radius: 20px;
    padding: 3px;
    border-image: linear-gradient(to bottom, white, rgba(255, 255, 255, 0)) 1;
    background: linear-gradient(to bottom, white, rgba(255, 255, 255, 0));
    background-clip: padding-box;
}

.form-section-content{
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #1B1B1BC7;
    border-radius: 20px;
    padding-bottom: 25px;
}

.form-section-title{
    color: #fff;
    text-align: left;
    width: 50%;
    text-transform: uppercase;
}

.form{
    display: flex;
    flex-direction: column; 
    width: 440px;
    align-items: center;
    row-gap: 110px;
    margin: auto;
    margin-top: 150px;
}

.form h2{
    color: #fff;
    text-transform: uppercase;
}

.form .form-content{
    width: 100%;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    border: 1px solid #fff;
    border-radius: 20px;
    padding: 35px;
}

.form-list{
    display: inline-flex;
    flex-direction: column;
    row-gap: 10px;
    margin-top: 80px;
    color: #fff;
}

.form-list li{
    padding: 0;
}

.input-form {
    display: flex;
    flex-direction: column-reverse;
    margin: 1.2em 0;
}

input, label, button {
    transition: .3s;
}

label {
    transform: translate(10px, -15px);
    cursor: text;
    transform-origin: left top;
    position: absolute;
    color: #8D8D8D;
}

input {
    padding: 10px;
    border: none; outline: none;
    border-bottom: 2px solid #ccc;
    color: #fff;    
    background: transparent;
}

.submit-form {
    text-align: right;
}

input::placeholder {
    opacity: 0;
}

input:focus,
input:not(:placeholder-shown) {
    border-bottom: 2px solid #fff;
}

input:not(:placeholder-shown) ~ label,
input:focus ~ label {
    transform: translate(10px, -30px) scale(.8);
    padding-left: 0;
    color: #fff;
}

.form-btn{
    position: relative;
    width: 100%;
    padding: 15px 0;
    background: none;
    outline: none;
    border: none;
    cursor: pointer;
}

.form-btn-light{
    color: #717171;
    background-color: #fff;
    margin-bottom: 10px;
}

.form-btn-light:hover{
    color: #000;
}

.form-btn-dark{
    color: #fff;
    background-color: transparent;
    border: 1px solid #fff;
}

.form-btn-dark:hover{
    color: #000;
    background-color: #fff;
}

.terms{
    margin-top: 15px;
    text-align: center;
    font-size: 12px;
    color: #9B9B9B;
}

@media (max-width: 576px) {
    .form{
        width: 100%;
        padding: 15px; 
        row-gap: 40px;
        margin-top: 40px;
        border: none;
    }

    .form-section-title{
        padding-left: 15px;
    }
    .form-section-title,
    .form h2{
        font-size: 1.5rem;
        width: 100%;
    }
}

.slider-section{
    background-color: #1B1B1B;
    height: 600px;
}

@media (max-width: 768px) {
    .slider-section p{
        font-size: 14px;
    }
}

.production-section {
    position: relative;

    margin: 0 auto;
    padding: 80px 20px;
    background: rgb(241, 241, 241);
    background-image: url('images/lines1.svg');
}
.container0 {
    max-width: 1440px;

    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    color: #717171;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(40px, 8vw, 96px);
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 80px;
}

.subtitle {
    color: #717171;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 40px;
    max-width: 858px;
}

.description {
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 22px;
    max-width: 900px;
    margin-bottom: 60px;
}

.cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    justify-content: center;
}

.product-card {
    background: #393939;
    border-radius: 20px;
    box-shadow: 0px 0px 21.4px 6px rgba(0, 0, 0, 0.37);
    padding: 25px;
    max-width: 435px;
    height: 738px;
    position: relative;
}

.product-image {
    width: 100%;
    max-width: 367px;
    height: 276px;
    object-fit: cover;
    margin-bottom: 30px;
}

.product-category {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
    margin-bottom: 0;
}

.product-title {
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 600;
    margin-top: 0; /* Добавляем обнуление верхнего отступа */
    margin-bottom: 35px; /* Уменьшаем нижний отступ */
}

.material-list {
    list-style-type: disc;
    padding-left: 20px;
    margin: 15px 0 30px;
    color: #fff;
}

.material-list li {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 8px;
}
.product-detail{
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
    margin-bottom: 8px;
}

.product-price {
    position: absolute;
    bottom: 25px;
    font-family: 'Inter', sans-serif;
    color: #fff;
}

.price-label,
.price-currency {
    font-size: 16px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

.price-amount {
    font-size: 24px;
    font-weight: 700;
    margin: 0 5px;
}

@media (max-width: 992px) {
    .cards-container{
        grid-template-columns: repeat(auto-fit, minmax(300px, 435px));
    }
}

@media (max-width: 768px) {
    .product-card {
        height: auto;
        padding-bottom: 80px;
    }

    .section-title {
        margin-bottom: 40px;
    }
}
/* Новые стили для секции */
.trashbin-section {
    background: #717171;
    padding: 80px 0;
    position: relative;
    background-image: url('images/lines1.svg');

}

.container {
    max-width: 1440px;

    margin: 0 auto;
    padding: 0 20px;
}

.trashbin-title {
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 40px;
    max-width: 858px;
}

.trashbin-description {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 22px;
    max-width: 900px;
    margin-bottom: 60px;
}

/* Модификации для темной темы */
.dark-theme .product-card {
    background: #4A4A4A;
    box-shadow: 0px 0px 21.4px 6px rgba(0, 0, 0, 0.5);
}

.specs-wrapper {
    margin-bottom: 20px;
}

.specs-wrapper .material-list {
    margin: 5px 0 15px;
}

@media (max-width: 768px) {
    .trashbin-section {
        padding: 40px 15px;
    }

    .trashbin-title {
        margin-bottom: 25px;
    }

    .trashbin-description {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 40px;
    }
}
.concrete-section {
    background: #f1f1f1;
    padding: 80px 0;
    background-image: url('images/lines1.svg');
}

.concrete-title {
    color: #717171;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 40px;
    max-width: 858px;
}

.concrete-description {
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 22px;
    max-width: 900px;
    margin-bottom: 60px;
}

.extended-card {
    height: 800px;
    background: #393939;
}

.product-subtitle {
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 600;
    margin: 10px 0;
}

.product-excerpt {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 25px;
    max-width: 334px;
}

@media (max-width: 768px) {
    .concrete-section {
        padding: 40px 0;
    }

    .extended-card {
        height: auto;
        padding-bottom: 100px;
    }

    .product-excerpt {
        font-size: 14px;
    }
}
.footer-section {
    background: #717171;
    padding: 80px 0 40px;
    color: #fff;
    background-image: url('images/team_bg.png');
}

.footer-content {
    display: flex; /* заменили grid на flex */
    align-items: flex-start;
    gap: 20px; /* уменьшили отступ между заголовком и текстом */
    margin-bottom: 60px;
    flex-wrap: wrap; /* для адаптива */
}


.footer-title {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 0px;
}

.team-description {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.5;
    max-width: 883px;

        margin-left: 200px;


}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
    text-align: center;
}

.copyright p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #fff;
}

.copyright a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.copyright a:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-section {
        padding: 50px 0 30px;
    }

    .footer-content {
        gap: 25px;
        margin-bottom: 40px;
    }

    .team-description {
        font-size: 16px;

            margin-left: 0;
    }
    .copyright {
        padding-top: 20px;
    }
}

.up{
    position: fixed;
    right: 50px;
    bottom: 50px;

    /* width: 30px;
    height: 30px; */

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    border-radius: 50%;
    border: 1px solid #fff;
    background-color: #393939;

    padding: 10px;

    z-index: 100;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    max-width: 400px;
    width: 80%;
    animation: scaleIn 0.3s ease-in-out;
}

.modal-content h2 {
    color: #2ecc71;
    margin-bottom: 10px;
}

.close {
    position: absolute;
    top: 10px; right: 20px;
    font-size: 28px;
    cursor: pointer;
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
