figma_accordeon_01

This commit is contained in:
2025-10-22 00:46:31 +03:00
parent c74ac0c765
commit a8243bf387
39 changed files with 1120 additions and 189 deletions

535
style.css
View File

@@ -194,148 +194,461 @@ html, body, * {
height: 19px;
margin: 0;
}
.header_slider {
display: flex;
height: 350px;
gap: 10px
}
.slide {
}
.main {
flex: 50%;
background: url("/images/header_body/seo_top_01.png") 100% / cover;
.header_accordion {
background-color: #8FECFC;
height: 348px;
border-radius: 30px;
padding: 20px 20px;
margin-bottom: 20px;
}
.accordion_about_info {
width: 50%;
margin: 0;
margin-bottom: 40px;
}
.about_info_list {
display: flex;
flex-direction: column;
justify-content: space-between;
padding-bottom: 10px;
}
.tags {
display: flex;
.info_list_item {
margin: 0;
flex-direction: column;
font-weight: 500;
}
.row_first {
/* --------------------------------------------------------------------------------------------- */
.header_row_info {
display: flex;
flex-direction: row;
align-items: center;
margin: 0;
margin-bottom: 8px;
margin-bottom: 60px;
}
.row_second {
.row_info_heading {
margin: 0;
width: 30%;
}
.info_heading_title {
font-size: 36px;
font-weight: 600;
margin-bottom: 20px;
}
.info_heading_btn {
display: flex;
flex-direction: row;
margin: 0;
}
.tags span {
color: #fff;
padding: 8px;
background-color: #0C47A0;
align-items: center;
padding: 10px 16px;
border-radius: 16px;
background-color: #0C47A0;
transition: all .3s;
color: #fff;
margin: 0;
}
.row_info_list {
display: flex;
width: 70%;
justify-content: space-between;
gap: 30px;
align-items: center;
}
.row_info_item {
display: flex;
align-items: center;
border-radius: 30px;
background-color: #F4F4F4;
padding: 35px 30px;
margin: 0;
width: 100%;
}
.row_info_area {
padding: 10px;
border-radius: 50%;
border: 1px solid #fff;
margin: 0;
margin-right: 15px;
}
.tags svg {
margin: auto 0;
.row_info_item svg {
display: block;
width: 10px;
height: 10px;
width: 25px;
height: 25px;
}
.content {
.row_info_content {
white-space: nowrap;
margin: 0;
}
.info_content_first {
margin-bottom: 5px;
}
.info_content_second {
font-size: 24px;
}
/* ------------------------------------------------------------------------------------ */
.advantage {
margin: 0;
display: flex;
align-items: center;
}
.advantage_heading {
width: 100%;
margin: 0;
}
.adv_heading_title {
margin: 0;
}
.heading_title_sub {
font-size: 18px;
font-weight: 600;
margin-bottom: 25px;
}
.heading_title_main {
font-size: 74px;
font-weight: 600;
}
.heading_title_main span {
font-size: 74px;
font-weight: 600;
color: #0C47A0;
}
.advantage_content {
width: 40%;
margin: 0;
}
.adv_cont_01 {
margin-bottom: 10px;
font-size: 18px;
}
.adv_cont_02 {
font-size: 18px;
}
/* --------------------------------------------------------------------------------------------- */
.advantage_slide {
}
.cards {
display: flex;
}
.card {
height: 637px;
width: 418px;
border-radius: 30px;
overflow: hidden;
cursor: pointer;
transition: all 0.3s ease;
color: white;
display: flex;
flex-direction: column;
justify-content: space-between;
background-size: cover;
}
.card.open {
background-color: white;
background-image: none !important;
color: #000;
height: auto;
padding: 20px;
}
.card-number {
display: flex;
font-size: 14px;
color: #fff;
border-radius: 50%;
align-items: center;
border: 1px solid white;
margin: 0;
}
.card.open .card-number {
position: static;
margin-bottom: 10px;
}
.card-title {
font-size: 18px;
font-weight: bold;
padding: 20px;
}
.card.open .card-title {
padding: 0;
margin-bottom: 10px;
}
.card-text {
display: none;
font-size: 14px;
line-height: 1.5;
}
.card.open .card-text {
display: block;
margin-bottom: 20px;
}
/* -------------------------------------------------------------------------------------------------- */
.slider {
display: flex;
margin-top: 50px;
width: 100%;
height: 348px;
border-radius: 30px;
margin-bottom: 20px;
}
.slider_main {
width: 60%;
height: 100%;
background: url("/images/main/01.png") 100% / cover;
border-radius: 30px;
padding: 20px 15px 10px 20px;
color: white;
display: flex;
justify-content: space-between;
align-items: center;
flex-direction: column;
}
.subtitle {
margin: 0;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
}
.subtitle svg {
display: block;
width: 24px;
height: 24px;
}
.index {
display: flex;
margin: 0;
height: 40px;
width: 40px;
background-color: #fff;
border-radius: 50%;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 18px;
}
.index span {
.slider_row {
}
.slide_small {
background-color: #0C47A0;
border-radius: 30px;
.slider_row_1 {
margin: 0;
width: 80%;
}
.slider_row_container {
width: 70%;
display: flex;
align-items: center;
justify-content: center;
position: relative;
width: 5%;
height: 100%;
}
.slide_small_index {
position: absolute;
bottom: 0;
display: flex;
height: 40px;
width: 40px;
flex-wrap: wrap;
margin: 0;
background-color: #fff;
border-radius: 50%;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 18px;
margin-bottom: 10px;
}
.slide_small_title {
.row_container_item {
margin: 0;
background-color: #025DC873;
padding: 8px 8px;
border-radius: 15px;
border: 1px solid white;
margin-bottom: 8px;
align-items: center;
color: #fff;
transform: rotate(270deg);
font-weight: 500;
white-space: nowrap;
text-align: center;
vertical-align: middle;
}
.second {
background-color: #A5C6F6;
}
.slide_small_light {
}
.slide_card {
background: url("/images/header_body/seo_top_04.png") 100% / cover;
border-radius: 30px;
padding: 20px;
width: 17%;
}
.card-content {
background-color: oklch(45.034% 0.18646 260.482 / 0.259);
height: 100%;
border-radius: 30px;
padding: 15px;
}
.card-number {
display: flex;
height: 40px;
width: 40px;
.row_container_area {
margin: 0;
background-color: #fff;
width: 10px;
height: 10px;
background-color: white;
border-radius: 50%;
margin-bottom: 8px;
}
.slider_row_2 {
margin: 0;
width: 100%;
}
.slider_row_inner {
width: 100%;
display: flex;
justify-content: space-between;
}
.slider_row_title {
margin: 0;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
color: #fff;
gap: 10px;
}
.slider_row_index {
margin: 0;
color: #393939;
font-size: 18px;
background-color: white;
border-radius: 50%;
padding: 10px;
}
.btn {
/* -------------------------------------------------------------------------------------- */
.accordion {
display: flex;
width: 40%; /* 40% страницы */
height: 348px;
gap: 10px;
margin: 0 10px; /* отступ между колонками */
}
.accordion-item {
flex: 1;
border-radius: 30px; /* закругление краёв */
overflow: hidden;
cursor: pointer;
display: flex;
justify-content: space-between;
flex-direction: column-reverse;
align-items: center;
}
.accordion-item.active{
display: flex;
flex: 5; /* раскрытая колонка */
width: 100%;
height: 100%;
}
.accordion-item.active .accordion_index{
display: none;
}
.accordion-item.active .accordion_title{
display: none;
}
.accordion-item.active .img-open {
display: none;
width: 0;
height: 0;
}
.accordion_index {
display: flex;
align-items: center;
justify-content: center;
padding: 15px;
border-radius: 50%;
background-color: #fff;
font-weight: 600;
width: 10px;
height: 10px;
margin-bottom: 10px;
}
.accordion_title {
margin: 0;
color: white;
display: flex;
align-items: center;
justify-content: center;
writing-mode: vertical-lr;
transform: rotate(-180deg);
margin-bottom: 40px;
}
/* not-actine */
#item1 {
background-color: #0C47A0;
}
#item2 {
background-color: #A5C6F6;
}
#item3 {
background-color: #0C47A0;
}
#item4 {
background-color: #A5C6F6;
}
#item5 {
background-color: #0C47A0;
}
/* active */
#item1.active {
background: url("/images/main/001.png") 100% 100% / cover;
}
#item2.active {
background: url("/images/main/002.png") 100% 100% / cover;
}
#item3.active {
background: url("/images/main/003.png") 100% 100% / cover;
}
#item4.active {
background: url("/images/main/004.png") 100% 100% / cover;
}
#item5.active {
background: url("/images/main/005.png") 100% 100% / cover;
}
.img-open {
display: block;
object-fit: cover;
width: 100%;
height: 100%;
}
.img-open {
display: none;
}
.accordion-item.active .blue-square {
display: block;
height: 100%;
margin: 20px;
background-color: rgba(2, 76, 187, 0.259);
border-radius: 33px;
}
/* not-active */
.item_wrapper_index {
display: none;
}
.item_wrapper {
display: none;
}
/* active */
.accordion-item.active .item_wrapper {
display: flex;
flex-direction: column;
padding: 15px;
height: 100%;
}
.wrapper_row_first {
display: flex;
justify-content: space-between;
width: 100%;
margin-bottom: 15px;
height: 30%;
}
.item_wrapper_index {
margin: 0;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
padding: 20px;
border-radius: 50%;
background-color: #fff;
width: 20px;
height: 20px;
font-size: 18px;
}
.item_wrapper_icon {
margin: 0;
background-color: #fff;
border-radius: 50%;
padding: 18px;
}
.item_wrapper_icon svg {
display: block;
width: 42px;
height: 42px;
}
.wrapper_row_middle {
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
}
.row_middle_title {
margin: 0;
color: #fff;
font-weight: 500;
font-size: 24px;
text-transform: uppercase;
}
.row_middle_text {
font-size: 16px;
color: #fff;
margin-bottom: 15px;
}
.wrapper_row_botton {
margin: 0;
height: 20%;
}
.wrapper_row_botton {
display: flex;
justify-content: end;
}
.wrapper_row_btn {
margin: 0;
display: flex;
align-items: center;
gap: 5px;
padding: 8px;
border-radius: 16px;
border: none;
font-size: 14px;
cursor: pointer;
}
.wrapper_row_btn svg {
display: block;
width: 14px;
height: 16px;
}