html {
scroll-behavior: smooth;
}
.autopart-page {
padding: 50px 0 100px;
}
.autopart__title {
font-family: var(--second-family);
font-weight: 700;
font-size: 50px;
text-transform: uppercase;
color: var(--tekst-zagolovkm);
margin-bottom: 70px;
} .autopart .consultation-form__title {
font-size: 28px;
}
.autopart .consultation-form__subtitle {
font-size: 15px;
line-height: 135%;
}
.autopart .consultation-form__btn span {
font-size: 16px;
} .autopart .cf__field[data-field="car_vin"] .cf__input,
.autopart .cf__field[data-field="part_number"] .cf__input {
font-family: 'Courier New', Courier, monospace;
letter-spacing: 0.5px;
}
.autopart .cf__field[data-field="car_vin"] .cf__input {
text-transform: uppercase;
}
.banners {
padding-top: 110px;
}
.banners__items {
display: flex;
gap: 24px;
}
.banner {
width: 100%;
max-width: 397px;
min-height: 308px;
background-position: center center;
background-size: cover;
background-repeat: no-repeat;
padding: 24px;
display: flex;
flex-direction: column;
justify-content: flex-end;
text-decoration: none;
}
.banner__text {
font-family: var(--second-family);
font-weight: 700;
font-size: 36px;
text-transform: uppercase;
color: var(--belyy);
}
.table {
padding-top: 110px;
}
.table .container {
display: flex;
flex-direction: column;
}
.table__title {
font-family: var(--second-family);
font-weight: 700;
font-size: 36px;
text-transform: uppercase;
color: var(--tekst-zagolovkm);
margin-bottom: 50px;
} .table__controls {
display: flex;
justify-content: space-between;
align-items: center;
gap: 24px;
margin-bottom: 30px;
flex-wrap: wrap;
}
.table__search {
position: relative;
flex: 1;
min-width: 300px;
max-width: 500px;
}
.table__search-input {
width: 100%;
padding: 14px 50px 14px 20px;
border: 2px solid var(--text);
font-family: var(--font-family);
font-size: 16px;
color: var(--text);
transition: all 0.2s ease;
}
.table__search-input:focus {
outline: none;
border-color: var(--blue);
}
.table__search-input::placeholder {
color: var(--text);
}
.table__search-btn {
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
background: transparent;
border: none;
color: var(--text-light, #666);
cursor: pointer;
padding: 8px;
display: flex;
align-items: center;
justify-content: center;
transition: color 0.2s ease;
}
.table__search-btn:hover {
color: var(--blue);
}
.table__search-clear {
position: absolute;
right: 45px;
top: 50%;
transform: translateY(-50%);
background: transparent;
border: none;
color: var(--text-light, #999);
cursor: pointer;
font-size: 24px;
line-height: 1;
padding: 4px 8px;
transition: color 0.2s ease;
}
.table__search-clear:hover {
color: var(--text);
}
.table__results-info {
font-family: var(--font-family);
font-size: 16px;
color: var(--text, #666);
white-space: nowrap;
}
.table__results-info span {
font-weight: 600;
color: var(--text);
}
.table__main {
display: flex;
flex-direction: column;
}
.table__top {
display: grid;
grid-template-columns: 120px 185px minmax(215px, 500px) 124px 142px;
justify-content: space-between;
margin-bottom: 20px;
padding: 24px;
background: var(--grey);
column-gap: 24px;
}
.table__top--column {
font-family: var(--font-family);
font-weight: 400;
font-size: 20px;
line-height: 150%;
color: var(--belyy);
}
.table__item:nth-child(even) {
background: linear-gradient(270deg, #f5f5eb 0%, #dfecfb 50.5%, #f5f5eb 100%);
}
.table__top--column {
padding: 0 24px;
}
.table__top--column:first-child {
padding: 0;
}
.table__items {
display: flex;
flex-direction: column;
gap: 13px;
}
.table__item {
display: grid;
grid-template-columns: 120px 185px minmax(215px, 500px) 124px 142px;
justify-content: space-between;
align-items: center;
padding: 12px 24px;
column-gap: 24px;
transition: background-color 0.2s ease;
}
.table__item--photo {
display: flex;
align-items: center;
justify-content: center;
min-height: 80px;
background-position: center;
background-size: cover;
background-repeat: no-repeat;
}
.table__item--photo img {
max-width: 100%;
max-height: 80px;
width: auto;
height: auto;
object-fit: contain;
display: none; }
.table__item--photo-placeholder {
width: 80px;
height: 80px;
background-color: var(--grey-light, #e0e0e0);
border-radius: 4px;
}
.table__item--art {
font-family: var(--font-family);
font-weight: 500;
font-size: 20px;
line-height: 150%;
color: var(--text-medium);
padding: 24px;
}
.table__item--name {
font-family: var(--font-family);
font-weight: 400;
font-size: 16px;
line-height: 150%;
color: var(--text-medium);
padding: 15px 24px;
}
.table__item--name::first-letter {
text-transform: capitalize;
}
.table__item--prize {
font-family: var(--font-family);
font-weight: 500;
font-size: 20px;
line-height: 150%;
color: var(--blue-dark);
padding: 24px;
}
.table__item--order-btn {
background: none;
border: none;
border-radius: 4px;
font-family: var(--font-family);
font-weight: 500;
font-size: 18px;
color: var(--tekst-zagolovkm);
cursor: pointer;
transition: color 0.2s ease;
white-space: nowrap;
}
.table__item--order-btn svg {
margin-left: 12px;
stroke: var(--tekst-zagolovkm);
transition: stroke 0.2s ease;
}
.table__item--order-btn:hover svg {
stroke: var(--knopka---akcentnyy);
}
.table__item--order-btn:hover {
color: var(--knopka---akcentnyy);
} @keyframes highlightField {
0% {
background-color: #fff3cd;
}
100% {
background-color: transparent;
}
}
.cf__field.is-auto-filled .cf__input {
animation: highlightField 1.5s ease-out;
}
.table__empty {
padding: 60px 24px;
text-align: center;
}
.table__empty p {
font-family: var(--font-family);
font-size: 18px;
color: var(--text);
margin: 0;
} .table__pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 12px;
margin-top: 40px;
padding: 20px 0;
}
.table__pagination-btn {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 16px;
background: var(--belyy);
border: 1px solid var(--text);
font-family: var(--font-family);
font-weight: 500;
font-size: 20px;
color: var(--text-medium);
cursor: pointer;
transition: all 0.2s ease;
}
.table__pagination-btn:not(:disabled):hover {
background: var(--knopka---akcentnyy);
color: var(--belyy);
border-color: var(--knopka---akcentnyy);
}
.table__pagination-btn:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.table__pagination-btn svg {
width: 8px;
height: 12px;
}
.table__pagination-pages {
display: flex;
align-items: center;
gap: 6px;
}
.table__pagination-page {
min-width: 40px;
height: 40px;
padding: 0 12px;
background: var(--belyy);
border: 1px solid var(--text);
font-family: var(--font-family);
font-weight: 500;
font-size: 20px;
color: var(--text-medium);
cursor: pointer;
transition: all 0.2s ease;
}
.table__pagination-page:hover {
background: var(--blue);
border-color: var(--blue);
color: var(--belyy);
}
.table__pagination-page.active {
background: var(--knopka---akcentnyy);
color: var(--belyy);
border-color: var(--knopka---akcentnyy);
}
.table__pagination-dots {
font-size: 18px;
color: var(--text-light, #666);
padding: 0 4px;
} .table__loading {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60px 24px;
gap: 16px;
}
.table__loading .spinner {
width: 48px;
height: 48px;
border: 4px solid var(--grey-light, #e0e0e0);
border-top-color: var(--primary, #007bff);
border-radius: 50%;
animation: spin 1s linear infinite;
}
.table__item--btn {
padding: 0 24px;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.table__loading p {
font-family: var(--font-family);
font-size: 16px;
color: var(--text-light, #666);
margin: 0;
}
@media screen and (max-width: 1279px) {
.table {
padding: 110px 40px 0 40px;
}
.banners {
padding: 60px 40px 0 40px;
}
.autopart__form .consultation-form .consultation-form__left {
max-width: 345px;
}
.breadcrumbs,
.autopart__title {
padding: 0 40px;
}
.autopart__form .consultation-form .cf__col {
max-width: 50%;
min-width: 0;
}
.table__top--column {
font-size: 16px;
}
.autopart__form .consultation-form .cf__row.cf__row--inline .cf__field {
max-width: 100%;
}
} @media screen and (max-width: 1100px) {
.autopart__form .consultation-form .cf__row.cf__row--inline .cf__field {
max-width: 167px;
}
}
@media screen and (max-width: 1023px) {
.autopart__form .consultation-form .cf__row.cf__row--inline .cf__field {
max-width: 100%;
}
.table__controls {
flex-direction: column;
align-items: stretch;
}
.table__search {
max-width: none;
}
.table__results-info {
text-align: center;
} .table__top {
grid-template-columns: 120px minmax(215px, 500px) 124px 142px;
}
.table__top--column:nth-child(2) {
display: none;
} .table__item {
grid-template-columns: 120px minmax(215px, 500px) 124px 142px;
grid-template-areas:
"photo name price order"
"article article article article";
}
.table__item--photo {
grid-area: photo;
}
.table__item--art {
grid-area: article;
padding: 0 24px 12px 24px;
font-size: 16px;
}
.table__item--name {
grid-area: name;
}
.table__item--prize {
grid-area: price;
}
.table__item--btn {
grid-area: order;
}
.autopart__form .consultation-form .consultation-form__left {
max-width: 100%;
}
.banner {
min-height: 230px;
padding: 14px;
}
.banner__text {
font-size: 27px;
}
.banners__items {
gap: 14px;
}
.table__top--column {
font-size: 20px;
}
}
@media screen and (max-width: 959px) {
.autopart__title {
margin-bottom: 40px;
}
.autopart__title {
font-size: 36px;
margin-bottom: 40px;
}
.banner {
min-height: 179px;
padding: 14px;
}
.table__top {
margin-bottom: 34px;
}
.table__top--column {
padding: 0;
font-size: 16px;
}
.table__item--name,
.table__item--art,
.table__item--prize,
.table__item--btn {
padding: 0;
}
.table__item--art {
grid-column: 1/2;
text-align: center;
}
}
@media screen and (max-width: 767px) {
.breadcrumbs,
.autopart__title {
padding: 0 15px;
}
.table {
padding: 60px 15px 0 15px;
}
.table__item {
padding: 0;
}
.table__title {
font-size: 28px;
margin-bottom: 30px;
}
.autopart__form .consultation-form .cf__col {
max-width: 100%;
}
.autopart__form .consultation-form .cf__row.cf__row--inline {
gap: 0;
margin-bottom: 16px;
} .table__top {
display: none;
} .table__item {
display: grid;
grid-template-columns: 120px 1fr;
grid-template-rows: auto auto auto auto;
grid-template-areas:
"photo name"
"article article"
"price-label price-value"
"order order";
gap: 15px;
padding: 20px;
align-items: start;
padding: 10px;
}
.table__item--photo {
grid-area: photo;
min-height: 120px;
background-position: center;
background-size: cover;
background-repeat: no-repeat;
}
.table__item--photo img {
max-height: 120px;
display: none; }
.table__item--name {
grid-area: name;
padding: 0;
align-self: center;
font-size: 20px;
}
.table__item--art {
grid-area: article;
padding: 0;
font-size: 18px;
grid-column: 1/2;
} .table__item--prize {
grid-area: price-value;
padding: 0;
align-self: center;
font-weight: 700;
font-size: 20px;
color: var(--tekst-zagolovkm);
}
.table__item--prize::before {
content: none;
} .table__item::before {
content: 'Цена';
grid-area: price-label;
font-family: var(--font-family);
font-weight: 700;
font-size: 20px;
color: var(--tekst-zagolovkm);
align-self: center;
}
.table__item--btn {
grid-area: order;
padding: 0;
margin-top: 8px;
}
.table__item--order-btn {
width: 100%;
padding: 18px 24px;
justify-content: center;
background: var(--knopka---akcentnyy);
border-radius: 0;
font-family: var(--second-family);
font-weight: 400;
font-size: 18px;
line-height: 130%;
color: var(--belyy);
}
.table__item--order-btn svg {
display: none;
}
.table__item--order-btn:hover {
background-color: var(--blue);
color: var(--belyy);
} .table__pagination {
flex-wrap: wrap;
gap: 8px;
}
.table__pagination-btn {
font-size: 13px;
padding: 8px 12px;
}
.table__pagination-page {
min-width: 36px;
height: 36px;
font-size: 14px;
}
.banners__items {
flex-direction: column;
}
.banners {
padding: 60px 15px 0 15px;
}
.banner__text {
font-size: 46px;
}
.banner {
min-width: 100%;
min-height: 300px;
}
}
@media screen and (max-width: 550px) {
.banner__text {
font-size: 29px;
}
.banner {
min-height: 250px;
}
.autopart-page {
padding: 40px 0 80px;
}
}
@media (max-width: 474px) {
.table__title {
font-size: 24px;
}
.table__search-input {
font-size: 14px;
padding: 12px 50px 12px 16px;
}
.table__results-info {
font-size: 14px;
}
.table__pagination-btn span {
display: none; }
.table__pagination-pages {
gap: 4px;
}
.table__pagination-page {
min-width: 32px;
height: 32px;
padding: 0 8px;
font-size: 13px;
}
.table__item--name {
word-break: break-word;
font-size: 16px;
}
.table__pagination {
margin-top: 10px;
}
}
@media screen and (max-width: 374px) {
.banner {
min-height: 200px;
}
.table__search {
min-width: 0;
}
}