Files
BarevClub/apps/landing/app/home.css
T

747 lines
14 KiB
CSS

/* Главная (/ и /live): продолжение версии v2 — plum, огромное «Barev», таймлайн.
Здесь только то, чего нет в variants.css: переключатель аудитории, тарифы-карты, прайс скидок и квиз. */
.h-switch {
display: inline-flex;
align-self: flex-start;
gap: 4px;
padding: 4px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.06);
}
.h-switch a {
padding: 10px 18px;
border-radius: 999px;
font-family: var(--bc-font-head);
font-weight: 600;
font-size: 16px;
color: var(--bc-bg);
text-decoration: none;
}
.h-switch a:hover {
color: var(--bc-pink);
}
.h-switch a[aria-current='page'] {
background: var(--bc-pink);
color: var(--bc-plum);
}
.h-hero__side {
display: flex;
flex-direction: column;
gap: 22px;
}
.h-actions {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.h-cta,
.h-cta-ghost {
height: 56px;
padding: 0 28px;
font-size: 17px;
}
.h-cta {
background: var(--bc-pink);
color: var(--bc-plum);
}
.h-cta:hover {
color: var(--bc-plum);
opacity: 0.92;
}
.h-cta-ghost {
background: transparent;
border: 1.5px solid rgba(246, 195, 211, 0.5);
color: var(--bc-bg);
}
.h-cta-ghost:hover {
border-color: var(--bc-pink);
color: var(--bc-pink);
}
/* шаг «Прилёт»: цена с подпиской и без — столбиком */
.v2-step__meta:has(.h-chip-note) {
flex-direction: column;
align-items: flex-end;
gap: 6px;
}
.h-chip-note {
font-size: 13px;
color: #e9c9d5;
}
.h-section-head {
display: flex;
flex-direction: column;
gap: 8px;
padding: 0 8px;
}
.h-section-head h2 {
margin: 0;
font-family: var(--bc-font-head);
font-weight: 800;
font-size: clamp(32px, 4vw, 52px);
line-height: 1;
letter-spacing: -0.03em;
}
.h-section-head p {
margin: 0;
max-width: 52ch;
font-size: 17px;
line-height: 1.5;
color: #e9c9d5;
}
/* ═════════ тарифы: клубные карты ═════════ */
.h-plans {
display: flex;
flex-direction: column;
gap: 28px;
margin-top: 40px;
}
.h-plans__grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 28px;
}
.h-plan {
display: flex;
flex-direction: column;
gap: 20px;
}
.h-card {
display: grid;
grid-template-columns: 1fr auto;
grid-template-rows: auto 1fr auto auto;
grid-template-areas: 'club chip' '. .' 'name name' 'price price';
aspect-ratio: 1.586;
padding: 20px 22px;
border-radius: 18px;
color: var(--bc-plum);
}
.h-plan[data-plan='free'] .h-card {
border: 1.5px solid rgba(246, 195, 211, 0.45);
color: var(--bc-bg);
}
.h-plan[data-plan='plus'] .h-card {
background: var(--bc-pink);
}
.h-plan[data-plan='elite'] .h-card {
background: var(--bc-perks);
}
.h-card__club {
grid-area: club;
font-size: 13px;
font-weight: 600;
opacity: 0.8;
}
/* контактная площадка карты */
.h-card__chip {
grid-area: chip;
width: 42px;
height: 32px;
border-radius: 8px;
background: color-mix(in srgb, currentColor 16%, transparent);
border: 1.5px solid color-mix(in srgb, currentColor 30%, transparent);
}
.h-card__name {
grid-area: name;
margin: 0;
font-family: var(--bc-font-head);
font-weight: 800;
font-style: italic;
font-size: clamp(30px, 3vw, 42px);
line-height: 1;
letter-spacing: -0.03em;
}
.h-card__price {
grid-area: price;
margin-top: 6px;
font-family: var(--bc-font-head);
font-weight: 600;
font-size: 18px;
}
.h-plan__list {
display: flex;
flex-direction: column;
gap: 10px;
margin: 0;
padding: 0 4px;
list-style: none;
}
.h-plan__list li {
display: flex;
gap: 10px;
align-items: flex-start;
line-height: 1.4;
color: #f4dce5;
}
.h-plan__list svg {
flex: none;
margin-top: 1px;
color: var(--bc-pink);
}
.h-plan[data-plan='elite'] .h-plan__list svg {
color: var(--bc-perks);
}
.h-plan__cta {
margin-top: auto;
height: 52px;
background: transparent;
border: 1.5px solid rgba(246, 195, 211, 0.5);
color: var(--bc-bg);
}
.h-plan__cta:hover {
color: var(--bc-pink);
border-color: var(--bc-pink);
}
.h-plan[data-plan='plus'] .h-plan__cta {
background: var(--bc-pink);
border-color: var(--bc-pink);
color: var(--bc-plum);
}
.h-plan[data-plan='elite'] .h-plan__cta {
background: var(--bc-perks);
border-color: var(--bc-perks);
color: var(--bc-plum);
}
.h-plan[data-plan='plus'] .h-plan__cta:hover,
.h-plan[data-plan='elite'] .h-plan__cta:hover {
opacity: 0.92;
}
/* ═════════ /live: прайс скидок с отточиями ═════════ */
.h-price {
display: flex;
flex-direction: column;
gap: 20px;
margin-top: 16px;
}
.h-price__list {
margin: 0;
padding: 0;
list-style: none;
}
.h-price__row {
display: grid;
grid-template-columns: auto minmax(24px, 1fr) auto;
grid-template-areas: 'name dots value' 'hint hint hint';
align-items: baseline;
column-gap: 14px;
row-gap: 4px;
padding: 20px 8px;
border-top: 1px solid rgba(246, 195, 211, 0.16);
}
.h-price__name {
grid-area: name;
font-family: var(--bc-font-head);
font-weight: 700;
font-size: clamp(22px, 2.6vw, 32px);
letter-spacing: -0.01em;
}
.h-price__dots {
grid-area: dots;
border-bottom: 2px dotted rgba(246, 195, 211, 0.4);
}
.h-price__value {
grid-area: value;
font-family: var(--bc-font-head);
font-weight: 800;
font-style: italic;
font-size: clamp(24px, 3vw, 38px);
letter-spacing: -0.02em;
color: var(--bc-pink);
white-space: nowrap;
}
.h-price__row[data-kind='from'] .h-price__value {
font-weight: 700;
font-style: normal;
font-size: clamp(18px, 2vw, 24px);
color: var(--bc-perks);
}
.h-price__row[data-kind='soon'] .h-price__name,
.h-price__row[data-kind='soon'] .h-price__hint {
opacity: 0.6;
}
.h-price__row[data-kind='soon'] .h-price__value {
font-weight: 600;
font-style: normal;
font-size: 16px;
color: #e9c9d5;
}
.h-price__order {
grid-area: value;
align-self: center;
height: 46px;
padding: 0 22px;
background: var(--bc-home);
color: var(--bc-home-ink);
white-space: nowrap;
}
.h-price__order:hover {
color: var(--bc-home-ink);
opacity: 0.9;
}
.h-price__hint {
grid-area: hint;
font-size: 15px;
color: #e9c9d5;
}
.h-footer__brand {
display: flex;
flex-direction: column;
gap: 4px;
}
.h-footer__legal {
font-size: 12px;
font-weight: 500;
opacity: 0.8;
}
.h-footer__links {
display: flex;
flex-wrap: wrap;
gap: 8px 20px;
}
@media (max-width: 900px) {
.h-plans__grid {
grid-template-columns: minmax(0, 1fr);
max-width: 440px;
}
}
@media (max-width: 720px) {
.h-switch {
align-self: stretch;
}
.h-switch a {
flex: 1 1 0;
min-width: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 8px 10px;
font-size: 14px;
line-height: 1.2;
text-align: center;
}
.h-cta,
.h-cta-ghost {
flex: 1 1 100%;
}
.v2-step__meta:has(.h-chip-note) {
align-items: flex-start;
}
.h-section-head,
.h-price__row {
padding-left: 0;
padding-right: 0;
}
}
/* ═════════ квиз ═════════ */
body:has(.q[open]) {
overflow: hidden;
}
.q {
width: 100%;
max-width: none;
height: 100%;
max-height: none;
margin: 0;
padding: 16px;
border: 0;
background: transparent;
}
.q[open] {
display: flex;
align-items: center;
justify-content: center;
}
.q::backdrop {
background: rgba(36, 8, 20, 0.62);
backdrop-filter: blur(4px);
}
.q-panel {
width: min(560px, 100%);
max-height: 100%;
overflow: auto;
padding: 18px 28px 30px;
border-radius: 32px;
background: var(--bc-bg);
color: var(--bc-ink);
}
.q :is(a, button, input):focus-visible {
outline: 3px solid var(--bc-accent);
outline-offset: 2px;
}
.q-top {
display: grid;
grid-template-columns: 44px 1fr 44px;
align-items: center;
}
.q-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
border: 0;
border-radius: 50%;
background: #fff;
color: var(--bc-plum);
cursor: pointer;
}
/* прогресс — те же точки на оси, что в таймлайне главной */
.q-dots {
display: flex;
justify-content: center;
margin: 0;
padding: 0;
list-style: none;
}
.q-dots li {
position: relative;
width: 12px;
height: 12px;
border-radius: 50%;
border: 2px solid var(--bc-plum);
transition: background-color 0.2s, box-shadow 0.2s;
}
.q-dots li + li {
margin-left: 26px;
}
.q-dots li + li::before {
content: '';
position: absolute;
right: calc(100% + 2px);
top: 50%;
width: 26px;
height: 2px;
margin-top: -1px;
background: rgba(74, 16, 40, 0.2);
}
.q-dots li[data-state='past'] {
background: var(--bc-plum);
}
.q-dots li[data-state='past']::before,
.q-dots li[data-state='now']::before {
background: var(--bc-plum);
}
.q-dots li[data-state='now'] {
background: var(--bc-accent);
border-color: var(--bc-accent);
box-shadow: 0 0 0 5px rgba(184, 35, 90, 0.18);
}
.q-step {
animation: q-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.q-step[data-dir='back'] {
animation-name: q-in-back;
}
@keyframes q-in {
from {
opacity: 0;
transform: translateX(28px);
}
}
@keyframes q-in-back {
from {
opacity: 0;
transform: translateX(-28px);
}
}
.q-form {
display: flex;
flex-direction: column;
gap: 16px;
}
.q-title {
margin: 26px 0 4px;
font-family: var(--bc-font-head);
font-weight: 800;
font-size: clamp(26px, 4vw, 34px);
line-height: 1.08;
letter-spacing: -0.02em;
color: var(--bc-plum);
text-wrap: balance;
}
.q-title:focus {
outline: none;
}
.q-field {
display: flex;
flex-direction: column;
gap: 6px;
}
.q-field > span {
font-size: 14px;
font-weight: 600;
color: var(--bc-ink-2);
}
.q-field small,
.q-error {
margin: 0;
font-size: 14px;
font-weight: 600;
color: var(--bc-danger);
}
.q-input {
width: 100%;
height: 54px;
padding: 0 16px;
border: 1.5px solid var(--bc-line);
border-radius: 16px;
background: #fff;
font: inherit;
font-size: 17px;
color: var(--bc-ink);
}
.q-input:focus {
outline: none;
border-color: var(--bc-plum);
}
.q-field[data-error='true'] .q-input {
border-color: var(--bc-danger);
}
.q-primary {
width: 100%;
height: 56px;
margin-top: 4px;
background: var(--bc-plum);
color: #fff;
font-size: 17px;
}
.q-primary:hover {
color: #fff;
opacity: 0.92;
}
.q-primary:disabled {
opacity: 0.6;
}
.q-consent {
margin: 0;
font-size: 13px;
line-height: 1.45;
color: var(--bc-ink-3);
}
.q-consent a {
color: var(--bc-plum);
}
.q-choices {
display: flex;
flex-direction: column;
gap: 10px;
}
.q-choice {
display: flex;
flex-direction: column;
gap: 4px;
width: 100%;
padding: 18px 20px;
border: 1.5px solid var(--bc-line);
border-radius: 20px;
background: #fff;
font: inherit;
font-size: 17px;
color: var(--bc-ink);
text-align: left;
cursor: pointer;
transition: border-color 0.15s, background-color 0.15s;
}
.q-choice:hover {
border-color: var(--bc-plum);
}
.q-choice[aria-checked='true'] {
border-color: var(--bc-plum);
background: var(--bc-pink);
}
.q-choice:disabled {
opacity: 0.6;
cursor: progress;
}
.q-choice--tall > span:last-child {
font-size: 15px;
line-height: 1.4;
color: var(--bc-ink-2);
}
.q-choice__head {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 12px;
}
.q-price {
font-family: var(--bc-font-head);
font-weight: 700;
color: var(--bc-plum);
white-space: nowrap;
}
.q-row {
display: flex;
flex-direction: column;
gap: 6px;
padding-top: 14px;
border-top: 1px solid var(--bc-line);
}
.q-row__head {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
gap: 10px;
}
.q-row__label {
font-size: 16px;
font-weight: 600;
}
.q-row__hint {
font-size: 13px;
color: var(--bc-ok);
}
.q-seg {
display: inline-flex;
padding: 3px;
border: 1.5px solid var(--bc-line);
border-radius: 999px;
background: #fff;
}
.q-seg button {
min-height: 38px;
padding: 0 14px;
border: 0;
border-radius: 999px;
background: transparent;
font: inherit;
font-size: 14px;
font-weight: 600;
color: var(--bc-ink-2);
cursor: pointer;
}
.q-seg button[aria-checked='true'] {
background: var(--bc-plum);
color: #fff;
}
.q-budget {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
margin: 6px 0 0;
padding: 0;
border: 0;
}
.q-budget legend {
margin-bottom: 6px;
padding: 0;
font-size: 13px;
color: var(--bc-ink-2);
}
.q-budget label {
display: flex;
flex-direction: column;
gap: 4px;
font-size: 12px;
color: var(--bc-ink-3);
}
.q-budget .q-input {
height: 46px;
}
.q-done {
align-items: center;
text-align: center;
padding-top: 8px;
}
.q-done .q-title {
margin-top: 4px;
}
.q-done__mark {
display: inline-flex;
align-items: center;
justify-content: center;
width: 64px;
height: 64px;
margin-top: 18px;
border-radius: 50%;
background: var(--bc-home);
color: var(--bc-home-ink);
}
.q-lead {
margin: 0;
font-size: 17px;
line-height: 1.5;
color: var(--bc-ink-2);
}
.q-link {
padding: 10px;
border: 0;
background: none;
font: inherit;
font-size: 15px;
font-weight: 600;
color: var(--bc-plum);
text-decoration: underline;
cursor: pointer;
}
@media (max-width: 560px) {
.q {
padding: 0;
}
.q[open] {
align-items: flex-end;
}
.q-panel {
max-height: 94%;
padding: 14px 18px 28px;
border-radius: 28px 28px 0 0;
}
}
@media (prefers-reduced-motion: reduce) {
.q-step {
animation: none;
}
}
/* заголовок шага таймлайна — ссылка на страницу услуги, подчёркивание только при наведении */
.v2-step__body h2 a {
color: inherit;
text-decoration: none;
}
.v2-step__body h2 a:hover {
color: var(--bc-pink);
text-decoration: underline;
text-underline-offset: 6px;
}
/* кнопка «Подробнее →» в шаге таймлайна */
.h-more {
height: 40px;
padding: 0 18px;
font-size: 15px;
background: transparent;
border: 1.5px solid var(--bc-pink);
color: var(--bc-pink);
white-space: nowrap;
}
.h-more:hover {
background: var(--bc-pink);
color: var(--bc-plum);
}
.h-more--soon,
.h-more--soon:hover {
background: transparent;
color: var(--bc-pink);
opacity: 0.6;
cursor: default;
}
/* ссылки на услуги в подвале */
.h-footer__services {
display: flex;
flex-wrap: wrap;
gap: 6px 18px;
width: 100%;
padding-top: 12px;
border-top: 1px solid rgba(246, 195, 211, 0.16);
}