Joywork/assets/style.css
2026-05-22 21:21:54 +03:00

173 lines
2.7 KiB
CSS

*,
*::before,
*::after {
box-sizing: inherit;
border-radius: 0;
}
html {
box-sizing: border-box;
}
html,
body {
width: 100%;
min-height: 100vh;
-webkit-text-size-adjust: none;
}
body {
position: relative;
display: flex;
flex-direction: column;
font-family: "Lato", sans-serif;
font-size: 16px;
font-weight: 400;
line-height: 1.2;
}
.main-header {
padding: 20px 0;
background-color: #ffffff;
position: sticky;
top: 0;
}
.main-header a {
display: flex;
align-items: center;
justify-content: center;
width: fit-content;
transition: opacity 0.25s ease-in;
}
.main-header a:hover,
.main-header a:focus {
opacity: .7;
}
.main-header img {
width: 182px;
height: auto;
}
.lw-container {
width: 100%;
max-width: 1920px;
margin: 0 auto;
padding: 0 30px;
}
.section-404 {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
flex-grow: 1;
padding: 40px 0;
height: 100%;
width: 100%;
}
.section-404__container {
max-width: 1200px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
/* .section-404 */
.section-404__title {
font-family: Lato;
font-size: 120px;
line-height: 1;
font-weight: 700;
text-align: center;
margin: 0;
color: #3C4150;
}
.section-404 img {
width: 100%;
max-width: 600px;
height: auto;
object-fit: contain;
}
.section-404 p {
font-size: 24px;
font-weight: 400;
text-align: center;
margin: 0;
color: #757575;
}
.section-404 img,
.section-404__title,
.section-404 p:last-of-type {
margin-bottom: 22px;
}
.section-404 a {
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
line-height: 1;
font-weight: 600;
text-decoration: none;
text-align: center;
border-radius: 3px;
padding: 14px 20px 14px;
color: #ffffff;
background-color: #4CAF50;
transition: opacity 0.25s ease-in;
}
.section-404 a:hover,
.section-404 a:focus {
opacity: .7;
}
@media(max-width: 768px) {
.main-header img {
width: 140px;
}
}
@media(max-width: 534px) {
.main-header {
padding: 15px 0;
}
.main-header img {
width: 100px;
}
.section-404 {
padding: 20px 0;
}
.lw-container {
padding: 0 15px;
}
.section-404__title {
font-size: 80px;
}
.section-404 p {
font-size: 18px;
}
.section-404 a {
font-size: 14px;
padding: 12px 15px 12px;
}
.section-404 img,
.section-404__title,
.section-404 p:last-of-type {
margin-bottom: 14px;
}
}