Files
talk-pro/src/styles/why.css

231 lines
3.1 KiB
CSS
Raw Normal View History

.why {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
padding: 64px 16px;
background: #fff;
}
.why__inner {
display: flex;
flex-direction: column;
align-items: flex-start;
width: 100%;
max-width: 1280px;
gap: 40px;
margin: 0 auto;
}
.why__intro {
display: flex;
flex-direction: column;
align-items: flex-start;
width: 100%;
gap: 36px;
overflow: clip;
}
.why__copy {
display: flex;
order: 2;
flex: 1;
flex-direction: column;
align-items: flex-start;
min-width: 0;
gap: 36px;
}
.why__text {
display: flex;
flex-direction: column;
align-items: flex-start;
width: 100%;
gap: 24px;
}
.why__title {
width: 100%;
font-size: 32px;
font-weight: 700;
color: #1a1a1a;
}
.why__title-line {
margin: 0;
line-height: 1.2;
}
.why__underline {
position: relative;
flex-shrink: 0;
width: 295.5px;
height: 0;
}
.why__underline-frame {
position: absolute;
inset: -0.5px 0;
}
.why__underline-image {
display: block;
width: 100%;
max-width: none;
height: 100%;
}
.why__description {
width: 100%;
margin: 0;
font-size: 18px;
font-weight: 400;
line-height: 1.5;
color: #7a726d;
}
.why__illustration {
position: relative;
display: block;
order: 1;
align-self: center;
flex-shrink: 0;
width: 320px;
height: 320px;
}
.why__illustration-image {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: contain;
}
.why__grid {
display: grid;
grid-template-columns: minmax(0, 1fr);
width: 100%;
gap: 24px;
}
.why-card {
display: flex;
align-items: center;
min-width: 0;
gap: 24px;
padding: 36px;
overflow: clip;
background: #fef0eb;
border: 1px solid #e8e4de;
border-radius: 30px;
}
.why-card__icon-frame {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 80px;
height: 80px;
overflow: clip;
background: #f08458;
border-radius: 9999px;
}
.why-card__icon {
display: block;
}
.why-card__icon--square {
width: 44px;
height: 44px;
}
.why-card__icon--familiar {
width: 38px;
height: 40px;
}
.why-card__icon--modern {
width: 24px;
height: 44px;
}
.why-card__copy {
display: flex;
flex: 1;
flex-direction: column;
align-items: flex-start;
min-width: 0;
gap: 12px;
overflow: clip;
}
.why-card__title {
width: 100%;
margin: 0;
font-size: 24px;
font-weight: 600;
line-height: 20px;
color: #0d0d0d;
}
.why-card__description {
width: 100%;
margin: 0;
font-size: 16px;
font-weight: 500;
line-height: 1.5;
color: #7a726d;
}
@media (min-width: 768px) {
.why__title {
font-size: 40px;
}
.why__grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.why-card {
min-height: 152px;
}
}
@media (min-width: 1023px) {
.why {
padding: 120px 24px;
}
.why__intro {
flex-direction: row;
}
.why__copy {
order: 1;
}
.why__illustration {
order: 2;
}
.why__title {
font-size: 48px;
}
.why__illustration {
width: 480px;
height: 480px;
}
}
@media (min-width: 1280px) {
.why {
padding-right: 0;
padding-left: 0;
}
}