dana-medical-site/web/src/pages/ServicesPage.css
2026-10-14 13:33:13 +00:00

102 lines
1.7 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.services-page {
background: var(--bg-home);
}
.services-page__inner {
padding: 71px 0 96px;
}
.services-page__crumbs {
font-size: 15px;
color: var(--text-muted-2);
}
/* плитки 247 × 246 с шагом 278 */
.svc-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 64px 31px;
margin-top: 58px;
}
.svc-tile {
display: flex;
flex-direction: column;
align-items: flex-start;
}
.svc-tile__image {
display: block;
width: 100%;
aspect-ratio: 247 / 246;
overflow: hidden;
border-radius: var(--r-20);
background: var(--photo-bg);
}
.svc-tile__image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}
.svc-tile:hover .svc-tile__image img {
transform: scale(1.04);
}
.svc-tile__title {
margin-top: 15px;
font-weight: 700;
font-size: 20px;
line-height: 1.2;
color: var(--navy);
}
.svc-tile__title a:hover {
color: var(--coral);
}
.svc-tile__more {
margin-top: 10px;
padding: 9px 16px;
border-radius: 11px;
font-size: 14px;
}
@media (max-width: 1023px) {
.svc-grid {
grid-template-columns: repeat(3, 1fr);
gap: 40px 20px;
}
}
@media (max-width: 767px) {
.services-page__inner {
padding: 16px 0 20px;
}
.services-page__crumbs {
font-size: 12px;
}
.svc-grid {
grid-template-columns: repeat(2, 1fr);
gap: 24px 12px;
margin-top: 16px;
}
.svc-tile__image {
border-radius: var(--r-12);
}
.svc-tile__title {
margin-top: 10px;
font-size: 14px;
line-height: 19px;
}
.svc-tile__more {
margin-top: 8px;
padding: 6px 12px;
border-width: 1.4px;
border-radius: var(--r-8);
font-size: 12px;
}
}