Files
olimparena/assets/scss/_base.scss
2026-05-13 14:14:26 +03:00

1471 lines
27 KiB
SCSS

@use "vars" as *;
@use "mixins" as *;
* {
box-sizing: border-box;
}
html,
body {
background: $color-bg;
color: $color-text;
font-family: $font-main;
}
body {
line-height: 1;
}
a {
color: inherit;
text-decoration: none;
}
img {
display: block;
max-width: 100%;
}
@keyframes fade-up {
from {
opacity: 0;
transform: translateY(24px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes slide-down {
from {
opacity: 0;
transform: translateY(-16px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.container {
@include container;
padding: 0 $container-padding;
}
.site {
position: relative;
overflow: hidden;
}
.scroll-reveal {
opacity: 0;
transform: translateY(26px);
transition: opacity 0.7s ease, transform 0.7s ease;
transition-delay: var(--reveal-delay, 0ms);
will-change: opacity, transform;
&.is-visible {
opacity: 1;
transform: translateY(0);
}
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 18px 24px;
border-radius: $radius-sm;
border: 0;
background: $color-accent;
color: $color-text;
font-size: 16px;
font-weight: 500;
line-height: 24px;
box-shadow: $shadow-accent;
cursor: pointer;
transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
&:hover {
transform: translateY(-2px);
}
&:active {
transform: translateY(0);
}
&--small {
padding: 10px 24px;
font-size: 14px;
line-height: 20px;
box-shadow: 0 10px 15px rgba(231, 0, 11, 0.4), 0 4px 6px rgba(231, 0, 11, 0.4);
}
&--ghost {
border: 2px solid rgba(255, 255, 255, 0.2);
background: rgba(41, 49, 51, 0.6);
box-shadow: none;
}
}
.header {
position: fixed;
inset: 0 0 auto;
z-index: 20;
border-bottom: 1px solid rgba(207, 23, 23, 0.2);
background: rgba(18, 18, 18, 0.95);
animation: slide-down 0.65s ease both;
&__inner {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 72px;
}
&__nav {
display: flex;
align-items: center;
gap: 32px;
margin-left: auto;
margin-right: 32px;
a {
color: rgba(255, 255, 255, 0.8);
font-size: 14px;
font-weight: 600;
line-height: 20px;
transition: color 0.2s ease;
&:hover {
color: $color-text;
}
}
}
}
.logo {
display: inline-flex;
width: 137px;
height: 30px;
img {
width: 100%;
height: 100%;
object-fit: cover;
}
}
.hero {
position: relative;
min-height: 852px;
padding-top: 72px;
&__bg {
position: absolute;
inset: 0;
background:
linear-gradient(90deg, rgba(18, 18, 18, 0.9) 0%, rgba(18, 18, 18, 0.7) 50%, rgba(0, 0, 0, 0) 100%),
url("../images/other/section-main.webp") center / cover no-repeat;
&::after {
content: "";
position: absolute;
inset: 0;
background-image:
repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 8px),
repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 8px);
mix-blend-mode: soft-light;
}
}
&__content {
position: relative;
z-index: 1;
max-width: 1000px;
margin-left: 528px;
padding-top: 104px;
padding-bottom: 50px;
> * {
opacity: 0;
animation: fade-up 0.7s ease forwards;
}
h1 {
animation-delay: 0.15s;
}
p {
animation-delay: 0.28s;
}
.hero__tags {
animation-delay: 0.4s;
}
.hero__actions {
animation-delay: 0.52s;
}
}
h1 {
max-width: 1000px;
margin-bottom: 24px;
font-size: 72px;
font-weight: 700;
line-height: 90px;
span {
color: $color-accent;
}
}
p {
max-width: 768px;
margin-bottom: 32px;
color: $color-text-soft;
font-size: 20px;
line-height: 32px;
}
&__tags {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-bottom: 28px;
li {
padding: 9px 17px;
border: 1px solid $color-border-strong;
border-radius: 999px;
background: rgba(41, 49, 51, 0.6);
font-size: 14px;
font-weight: 600;
line-height: 20px;
white-space: nowrap;
transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
&:hover {
transform: translateY(-1px);
border-color: rgba(207, 23, 23, 0.55);
background: rgba(41, 49, 51, 0.9);
}
}
}
&__actions {
display: flex;
gap: 16px;
}
}
.highlights {
background: linear-gradient(90deg, $color-surface, $color-surface-2);
padding: 96px 0;
&__grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 24px;
}
}
.info-card {
@include card;
min-height: 178px;
padding: 33px;
transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
&:hover {
transform: translateY(-6px);
border-color: rgba(207, 23, 23, 0.45);
background: rgba(18, 18, 18, 0.62);
}
h3 {
margin-bottom: 8px;
font-size: 20px;
font-weight: 700;
line-height: 28px;
}
p {
color: $color-text-muted;
font-size: 16px;
line-height: 24px;
}
}
.section {
position: relative;
padding: 96px 0;
> .container {
position: relative;
z-index: 1;
}
&--pattern {
background: $color-bg;
&::before {
content: "";
position: absolute;
inset: 0;
background-image:
radial-gradient(circle at 80px 80px, rgba(207, 23, 23, 0.25) 0 2px, transparent 2px 70px),
radial-gradient(circle at 120px 120px, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 48px);
background-size: 320px 320px;
opacity: 0.4;
pointer-events: none;
}
}
&__head {
margin-bottom: 64px;
text-align: center;
h2 {
margin-bottom: 16px;
font-size: 48px;
font-weight: 700;
line-height: 1;
}
p {
color: $color-text-soft;
font-size: 28px;
line-height: 1.15;
}
}
}
.infrastructure {
background: linear-gradient(90deg, #293133 0%, #2f3b40 100%);
.section__head {
margin-bottom: 56px;
h2 {
font-size: 48px;
font-weight: 600;
line-height: 1.05;
}
p {
font-size: 20px;
font-weight: 400;
line-height: 1.2;
}
}
&__grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 24px;
}
}
.feature-card {
@include card;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
min-height: 238px;
padding: 32px 26px 30px;
text-align: center;
transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
&:hover {
transform: translateY(-5px);
border-color: rgba(207, 23, 23, 0.55);
background: rgba(18, 18, 18, 0.6);
}
&__icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 64px;
height: 64px;
margin-bottom: 18px;
border-radius: 18px;
background: $color-accent;
color: $color-text;
box-shadow: 0 12px 24px rgba(231, 0, 11, 0.5);
svg {
width: 32px;
height: 32px;
display: block;
}
}
h3 {
margin-bottom: 10px;
font-size: 18px;
font-weight: 700;
line-height: 1.2;
}
p {
color: $color-text-muted;
font-size: 16px;
line-height: 1.3;
}
}
.objects {
background-image: url(../images/bg-pattern.svg);
background-position: center;
.section__head {
margin-bottom: 64px;
}
}
.object-card {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 32px;
margin-bottom: 48px;
&:last-child {
margin-bottom: 0;
}
&--reverse {
.object-card__image {
order: 2;
}
.object-card__content {
order: 1;
}
}
&__image {
min-height: 400px;
border-radius: $radius-md;
background-size: cover;
background-position: center;
transition: transform 0.5s ease;
}
&__content {
@include card;
align-self: center;
min-height: 338px;
padding: 33px;
transition: transform 0.3s ease, border-color 0.3s ease;
display: flex;
flex-direction: column;
justify-content: center;
h3 {
margin-bottom: 16px;
font-size: 34px;
font-weight: 700;
line-height: 1.1;
}
p {
margin-bottom: 24px;
color: $color-text-muted;
font-size: 18px;
line-height: 28px;
}
ul {
margin-bottom: 24px;
}
li {
position: relative;
padding-left: 14px;
color: $color-text-soft;
font-size: 16px;
line-height: 28px;
& + li {
margin-top: 8px;
}
&::before {
content: "";
position: absolute;
left: 0;
top: 12px;
width: 6px;
height: 6px;
border-radius: 50%;
background: $color-accent;
}
}
}
&:hover {
.object-card__image {
transform: scale(1.02);
}
.object-card__content {
transform: translateY(-4px);
border-color: rgba(207, 23, 23, 0.4);
}
}
}
.services {
background: $color-bg;
background-image: url(../images/bg-pattern.svg);
background-position: center;
.section__head {
margin-bottom: 52px;
h2 {
font-size: 48px;
line-height: 1.05;
}
p {
font-size: 20px;
line-height: 1.2;
}
}
&__grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 18px;
width: 100%;
max-width: 896px;
margin: 0 auto;
}
&__cta {
margin-top: 48px;
text-align: center;
}
&__cta-btn {
width: min(100%, 560px);
min-height: 60px;
padding: 16px 26px;
font-size: 18px;
line-height: 1.2;
box-shadow: 0 18px 34px rgba(231, 0, 11, 0.45);
}
}
.service-card {
display: flex;
align-items: center;
justify-content: center;
min-height: 72px;
padding: 12px 18px;
border: 1px solid rgba(207, 23, 23, 0.45);
border-radius: $radius-md;
background: #1d252b;
color: $color-text;
font-size: 18px;
font-weight: 700;
line-height: 1.2;
text-align: center;
transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
&:hover {
transform: translateY(-3px);
border-color: rgba(207, 23, 23, 0.75);
background: #222c33;
}
}
.pricing {
background: linear-gradient(90deg, $color-surface, $color-surface-2);
.section__head {
margin-bottom: 44px;
}
&__list {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px;
margin-bottom: 28px;
}
&__note {
margin-bottom: 30px;
color: $color-text-soft;
font-size: 18px;
line-height: 1.45;
text-align: center;
}
&__cta {
text-align: center;
}
&__cta-btn {
width: min(100%, 420px);
min-height: 60px;
padding: 16px 26px;
font-size: 18px;
line-height: 1.2;
}
&-item {
@include card;
min-height: 144px;
padding: 24px;
h3 {
margin-bottom: 10px;
font-size: 22px;
font-weight: 700;
line-height: 1.25;
}
p {
color: $color-accent;
font-size: 24px;
font-weight: 700;
line-height: 1.2;
}
}
}
.gallery {
background: linear-gradient(90deg, $color-surface, $color-surface-2);
&__grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 24px;
}
&__item {
aspect-ratio: 16 / 10;
border: 1px solid $color-border;
border-radius: $radius-md;
background-size: cover;
background-position: center;
transition: transform 0.45s ease, border-color 0.3s ease, filter 0.3s ease;
&:hover {
transform: scale(1.03);
border-color: rgba(207, 23, 23, 0.55);
filter: saturate(1.08);
}
}
}
.reviews {
background: $color-bg;
background-image: url(../images/bg-pattern.svg);
background-position: center;
&__grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 32px;
margin-bottom: 64px;
}
}
.review-card {
@include card;
min-height: 206px;
padding: 33px;
transition: transform 0.3s ease, border-color 0.3s ease;
&:hover {
transform: translateY(-5px);
border-color: rgba(207, 23, 23, 0.4);
}
p {
margin-bottom: 24px;
color: $color-text-soft;
font-size: 16px;
line-height: 1.5;
}
strong {
display: block;
margin-bottom: 8px;
font-size: 16px;
font-weight: 700;
line-height: 1.2;
}
span {
color: $color-text-muted;
font-size: 16px;
line-height: 1.2;
}
}
.stats {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 32px;
article {
@include card;
border: 0;
background: $color-accent;
min-height: 144px;
padding: 32px;
text-align: center;
transition: transform 0.3s ease;
&:hover {
transform: translateY(-5px);
}
}
strong {
display: block;
margin-bottom: 8px;
color: $color-text;
font-size: 48px;
font-weight: 700;
line-height: 1;
}
span {
color: $color-text;
font-size: 16px;
line-height: 1.3;
}
}
.booking {
background: linear-gradient(90deg, $color-surface, $color-surface-2);
&__wrap {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 48px;
}
h2 {
margin-bottom: 24px;
font-size: 48px;
font-weight: 600;
line-height: 1.02;
}
p {
margin-bottom: 32px;
color: $color-text-soft;
font-size: 16px;
line-height: 1.4;
}
form {
display: flex;
flex-direction: column;
gap: 16px;
.btn {
width: 100%;
height: 60px;
margin-top: 4px;
padding: 0 24px;
}
}
input {
width: 100%;
height: 72px;
padding: 0 24px;
border: 1px solid $color-border;
border-radius: $radius-sm;
background: rgba(18, 18, 18, 0.35);
color: $color-text;
font-size: 16px;
line-height: 18px;
&::placeholder {
color: rgba(255, 255, 255, 0.45);
}
outline: none;
}
}
.contacts-card,
.hours-card {
@include card;
padding: 33px;
transition: transform 0.3s ease, border-color 0.3s ease;
&:hover {
transform: translateY(-4px);
border-color: rgba(207, 23, 23, 0.4);
}
}
.contacts-card {
margin-bottom: 32px;
h3 {
margin-bottom: 30px;
font-size: 24px;
font-weight: 600;
line-height: 1.05;
}
ul {
display: flex;
flex-direction: column;
gap: 18px;
}
li {
display: flex;
align-items: flex-start;
gap: 16px;
}
&__icon {
flex: 0 0 24px;
width: 24px;
height: 24px;
margin-top: 2px;
svg {
width: 24px;
height: 24px;
display: block;
}
}
&__item-content {
strong {
display: block;
margin-bottom: 8px;
font-size: 16px;
font-weight: 600;
line-height: 1.1;
}
span {
color: $color-text-soft;
font-size: 16px;
line-height: 1.45;
}
}
}
.hours-card {
h4 {
margin-bottom: 16px;
font-size: 16px;
font-weight: 600;
line-height: 1.2;
}
p {
margin: 0;
font-size: 16px;
line-height: 1.25;
}
}
.footer {
border-top: 1px solid rgba(207, 23, 23, 0.1);
background: #090a0f;
padding: 64px 0 20px;
&__top {
display: grid;
grid-template-columns: 1.45fr 1fr 1.15fr 1fr;
gap: 36px;
margin-bottom: 48px;
}
&__brand {
p {
max-width: 286px;
margin-top: 16px;
color: rgba(255, 255, 255, 0.65);
font-size: 14px;
line-height: 1.28;
}
}
&__nav,
&__contacts,
&__social {
h4 {
margin-bottom: 16px;
font-size: 16px;
font-weight: 600;
line-height: 1.1;
}
a {
display: block;
color: rgba(255, 255, 255, 0.65);
font-size: 14px;
line-height: 1.35;
}
span {
display: block;
color: rgba(255, 255, 255, 0.65);
font-size: 14px;
line-height: 1.35;
}
a + a,
span + span {
margin-top: 10px;
}
}
&__socials {
display: flex;
gap: 12px;
a {
display: inline-flex;
align-items: center;
justify-content: center;
width: 58px;
height: 58px;
border: 1px solid rgba(207, 23, 23, 0.5);
border-radius: 10px;
color: rgba(255, 255, 255, 0.92);
transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
margin-top: 0 !important;
svg {
width: 24px;
height: 24px;
display: block;
}
&:hover {
transform: translateY(-2px);
border-color: rgba(207, 23, 23, 0.85);
background: rgba(207, 23, 23, 0.15);
}
}
}
&__bottom {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
border-top: 1px solid rgba(207, 23, 23, 0.35);
padding-top: 30px;
span,
a {
color: rgba(255, 255, 255, 0.4);
font-size: 14px;
line-height: 1.3;
}
}
&__legal {
display: flex;
gap: 34px;
}
}
@include respond($bp-xxl) {
.hero {
&__content {
margin-left: 420px;
}
h1 {
font-size: 64px;
line-height: 1.15;
}
}
}
@include respond($bp-xl) {
.container {
padding: 0 20px;
}
.header {
&__nav {
gap: 20px;
margin-right: 20px;
}
}
.hero {
&__content {
margin-left: 280px;
max-width: 700px;
}
h1 {
font-size: 56px;
}
p {
font-size: 18px;
line-height: 1.6;
}
}
.section__head {
h2 {
font-size: 40px;
}
p {
font-size: 24px;
}
}
.object-card__content {
h3 {
font-size: 30px;
}
}
.booking {
h2 {
font-size: 48px;
}
}
.contacts-card {
h3 {
font-size: 24px;
}
&__item-content {
strong {
font-size: 16px;
}
}
}
.hours-card {
h4 {
font-size: 16px;
}
p {
font-size: 16px;
}
}
.footer {
&__brand p {
font-size: 28px;
}
&__nav,
&__contacts,
&__social {
h4 {
font-size: 16px;
}
a,
span {
font-size: 14px;
}
}
&__bottom {
span,
a {
font-size: 14px;
}
}
}
}
@include respond($bp-lg) {
.header {
&__inner {
min-height: 64px;
}
&__nav {
display: none;
}
}
.hero {
min-height: auto;
padding: 120px 0 80px;
&__content {
margin-left: 0;
max-width: 100%;
padding-top: 0;
}
h1 {
max-width: 640px;
font-size: 48px;
line-height: 1.15;
}
p {
max-width: 640px;
}
&__actions {
flex-wrap: wrap;
}
}
.highlights__grid,
.gallery__grid,
.reviews__grid,
.stats,
.footer__top,
.infrastructure__grid,
.services__grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.services__grid {
max-width: none;
}
.object-card,
.booking__wrap {
grid-template-columns: 1fr;
gap: 24px;
}
.object-card--reverse {
.object-card__image,
.object-card__content {
order: initial;
}
}
.section {
padding: 72px 0;
&__head {
margin-bottom: 40px;
}
}
.booking__contacts {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 24px;
}
.contacts-card {
margin-bottom: 0;
}
.footer__bottom {
flex-direction: column;
align-items: flex-start;
}
.footer {
&__top {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 28px;
}
&__brand p {
font-size: 22px;
margin-top: 18px;
}
&__nav,
&__contacts,
&__social {
h4 {
font-size: 30px;
margin-bottom: 16px;
}
a,
span {
font-size: 22px;
line-height: 1.32;
}
}
&__bottom {
span,
a {
font-size: 14px;
}
}
}
}
@include respond($bp-md) {
.container {
padding: 0 16px;
}
.btn {
width: 100%;
&--small {
width: auto;
}
}
.hero {
padding-top: 108px;
h1 {
max-width: 100%;
font-size: 40px;
}
p {
max-width: 100%;
font-size: 16px;
line-height: 1.5;
}
&__tags {
li {
white-space: normal;
}
}
&__actions {
.btn--ghost {
width: 100%;
}
}
}
.section__head {
h2 {
font-size: 34px;
}
p {
font-size: 20px;
line-height: 1.3;
}
}
.highlights__grid,
.gallery__grid,
.reviews__grid,
.stats,
.footer__top,
.booking__contacts,
.infrastructure__grid,
.services__grid {
grid-template-columns: 1fr;
}
.feature-card h3,
.object-card__content h3,
.booking h2 {
font-size: 24px;
}
.booking {
input {
height: 60px;
}
}
.contacts-card {
h3 {
font-size: 34px;
margin-bottom: 18px;
}
&__item-content {
strong {
font-size: 16px;
}
span {
font-size: 16px;
}
}
}
.hours-card {
h4 {
font-size: 16px;
margin-bottom: 12px;
}
p {
font-size: 16px;
}
}
.infrastructure .section__head h2,
.services .section__head h2 {
font-size: 38px;
}
.infrastructure .section__head p,
.services .section__head p {
font-size: 20px;
}
.service-card {
font-size: 17px;
}
.footer {
&__brand p {
font-size: 16px;
max-width: 100%;
}
&__nav,
&__contacts,
&__social {
h4 {
font-size: 16px;
}
a,
span {
font-size: 16px;
}
}
&__bottom {
span,
a {
font-size: 14px;
}
}
}
.stats strong {
font-size: 40px;
}
}
@include respond($bp-sm) {
.header__inner {
gap: 12px;
}
.logo {
width: 110px;
height: 24px;
}
.btn {
&--small {
padding: 10px 16px;
font-size: 13px;
}
}
.hero {
padding-top: 100px;
h1 {
font-size: 34px;
}
&__actions {
gap: 12px;
}
}
.section {
padding: 64px 0;
&__head {
h2 {
font-size: 32px;
}
p {
font-size: 18px;
}
}
}
.info-card,
.feature-card,
.review-card,
.stats article,
.contacts-card,
.hours-card,
.object-card__content {
padding: 24px;
}
.object-card__image {
min-height: 260px;
}
.service-card {
min-height: 64px;
font-size: 16px;
}
.services__cta-btn {
width: 100%;
font-size: 16px;
}
.footer__bottom {
.footer__legal {
flex-direction: column;
gap: 12px;
}
}
.footer {
&__top {
gap: 20px;
}
&__socials a {
width: 50px;
height: 50px;
}
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation: none !important;
transition: none !important;
scroll-behavior: auto !important;
}
.hero__content > * {
opacity: 1 !important;
}
.scroll-reveal {
opacity: 1 !important;
transform: none !important;
}
}