fix(subjects): презентабельные карточки направлений (grid-колонка, скругления, hover, иконки)
This commit is contained in:
+104
-19
@@ -567,17 +567,41 @@ h2 em {
|
||||
|
||||
.subject-cards {
|
||||
display: grid;
|
||||
grid-column: 2;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 18px;
|
||||
gap: 24px;
|
||||
margin-top: 48px;
|
||||
}
|
||||
|
||||
.subject-card {
|
||||
position: relative;
|
||||
display: flex;
|
||||
min-height: 390px;
|
||||
min-height: 400px;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
padding: 26px 28px 24px;
|
||||
padding: 34px 32px 30px;
|
||||
border-radius: 20px;
|
||||
overflow: hidden;
|
||||
transition: transform 180ms ease, box-shadow 180ms ease;
|
||||
}
|
||||
|
||||
.subject-card::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0 0 auto;
|
||||
height: 3px;
|
||||
background: var(--coral);
|
||||
opacity: 0;
|
||||
transition: opacity 180ms ease;
|
||||
}
|
||||
|
||||
.subject-card:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 22px 44px -22px rgba(16, 33, 29, 0.35);
|
||||
}
|
||||
|
||||
.subject-card:hover::before {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.subject-card-dark {
|
||||
@@ -590,20 +614,35 @@ h2 em {
|
||||
background: var(--sage);
|
||||
}
|
||||
|
||||
.subject-card-accent:hover {
|
||||
box-shadow: 0 22px 44px -22px rgba(16, 33, 29, 0.4);
|
||||
}
|
||||
|
||||
.card-top {
|
||||
display: flex;
|
||||
align-items: start;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.card-icon {
|
||||
display: grid;
|
||||
width: 45px;
|
||||
height: 45px;
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
flex: 0 0 auto;
|
||||
place-items: center;
|
||||
border: 1px solid currentColor;
|
||||
border-radius: 50%;
|
||||
font: 20px var(--serif);
|
||||
font: 26px var(--serif);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.subject-card-dark .card-icon {
|
||||
color: var(--ink);
|
||||
background: var(--sage-deep);
|
||||
}
|
||||
|
||||
.subject-card-accent .card-icon {
|
||||
color: var(--white);
|
||||
background: var(--coral);
|
||||
}
|
||||
|
||||
.subject-card .card-number {
|
||||
@@ -614,11 +653,17 @@ h2 em {
|
||||
color: var(--coral);
|
||||
}
|
||||
|
||||
.card-body {
|
||||
margin: 28px 0 30px;
|
||||
}
|
||||
|
||||
.card-kicker {
|
||||
margin-bottom: 10px;
|
||||
margin-bottom: 12px;
|
||||
color: var(--coral-soft);
|
||||
font-size: 9px;
|
||||
letter-spacing: 0.11em;
|
||||
font-size: 10px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.14em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.subject-card-accent .card-kicker {
|
||||
@@ -627,27 +672,65 @@ h2 em {
|
||||
|
||||
.subject-card h3 {
|
||||
margin-bottom: 16px;
|
||||
font: 500 clamp(36px, 4vw, 52px)/1 var(--serif);
|
||||
letter-spacing: -0.05em;
|
||||
font: 500 clamp(34px, 3.4vw, 46px)/1.05 var(--serif);
|
||||
letter-spacing: -0.04em;
|
||||
}
|
||||
|
||||
.card-description {
|
||||
max-width: 340px;
|
||||
margin-bottom: 0;
|
||||
color: rgba(255, 255, 255, 0.63);
|
||||
font-size: 12px;
|
||||
line-height: 1.7;
|
||||
color: rgba(255, 255, 255, 0.66);
|
||||
font-size: 13px;
|
||||
line-height: 1.75;
|
||||
}
|
||||
|
||||
.subject-card-accent .card-description {
|
||||
color: rgba(16, 33, 29, 0.65);
|
||||
color: rgba(16, 33, 29, 0.68);
|
||||
}
|
||||
|
||||
.card-link {
|
||||
font-size: 11px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
padding-top: 22px;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.14);
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.subject-card-accent .card-link {
|
||||
border-top-color: rgba(16, 33, 29, 0.16);
|
||||
}
|
||||
|
||||
.card-link span {
|
||||
display: grid;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
margin-left: 0;
|
||||
place-items: center;
|
||||
border: 1px solid currentColor;
|
||||
border-radius: 50%;
|
||||
font-size: 15px;
|
||||
transition: transform 180ms ease, background-color 180ms ease;
|
||||
}
|
||||
|
||||
.card-link:hover span {
|
||||
transform: translateX(4px);
|
||||
}
|
||||
|
||||
.subject-card-dark .card-link:hover span {
|
||||
background: var(--coral);
|
||||
border-color: var(--coral);
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.subject-card-accent .card-link:hover span {
|
||||
background: var(--ink);
|
||||
border-color: var(--ink);
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.process {
|
||||
padding-bottom: 12px;
|
||||
}
|
||||
@@ -1494,11 +1577,13 @@ textarea {
|
||||
}
|
||||
|
||||
.subject-cards {
|
||||
grid-column: 1;
|
||||
margin-top: 32px;
|
||||
}
|
||||
|
||||
.subject-card {
|
||||
min-height: 330px;
|
||||
min-height: 360px;
|
||||
padding: 30px 26px 26px;
|
||||
}
|
||||
|
||||
.process-list {
|
||||
|
||||
Reference in New Issue
Block a user