/* =========================================================
   MANSCLUB — STYLE.CSS
   ПОЛНАЯ ОБНОВЛЁННАЯ ВЕРСИЯ
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: #ffffff;
    background: #050505;

    overflow-x: hidden;
}

/* =========================================================
   ОСНОВНЫЕ ЦВЕТА
========================================================= */

:root {
    --gold: #d4af37;
    --gold-light: #f3d675;
    --gold-dark: #9d7b20;

    --glass: rgba(10, 10, 10, .72);

    --gold-border:
        rgba(212, 175, 55, .28);

    --gold-glow:
        rgba(212, 175, 55, .22);
}

/* =========================================================
   ФОН
========================================================= */

.background {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    background-image:
        url("IMG_0143.jpeg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: -3;

    transform: scale(1.02);
}

.background-overlay {
    position: fixed;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, .42),
            rgba(0, 0, 0, .72)
        );

    z-index: -2;

    pointer-events: none;
}

/* =========================================================
   ЭКРАНЫ
========================================================= */

.screen {
    display: none;

    width: 100%;
    min-height: 100vh;

    padding:
        90px
        20px
        45px;
}

.screen.active {
    display: block;

    animation:
        screenAppear
        .45s
        ease;
}

@keyframes screenAppear {

    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   ГЛАВНАЯ
========================================================= */

#home {
    display: none;

    align-items: center;
    justify-content: center;

    text-align: center;
}

#home.active {
    display: flex;
}

.hero {
    width: 100%;
    min-height: 72vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.hero-content {
    width: 100%;
    max-width: 850px;

    margin: auto;
}

/* =========================================================
   ВЕРХНЯЯ НАДПИСЬ
========================================================= */

.hero-topline {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-bottom: 15px;

    color:
        rgba(255, 255, 255, .55);

    font-size: 11px;

    letter-spacing: 4px;
}

.hero-topline span {
    width: 35px;
    height: 1px;

    background:
        rgba(212, 175, 55, .45);
}

/* =========================================================
   БРЕНД
========================================================= */

.brand {
    font-size: 22px;

    font-weight: 700;

    letter-spacing: 8px;

    color: var(--gold-light);

    text-shadow:
        0 0 20px rgba(212, 175, 55, .3);
}

.brand-line {
    width: 70px;
    height: 2px;

    margin:
        14px
        auto
        20px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--gold),
            transparent
        );
}

/* =========================================================
   МАЛЕНЬКИЙ ЗАГОЛОВОК
========================================================= */

.hero-small-title {
    margin-bottom: 8px;

    color:
        rgba(255, 255, 255, .48);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 4px;
}

/* =========================================================
   BARBERSHOP
========================================================= */

.hero h1 {
    font-size:
        clamp(
            55px,
            12vw,
            110px
        );

    line-height: .9;

    letter-spacing: -2px;

    color: #fff;

    text-shadow:
        0 5px 30px rgba(0, 0, 0, .8),
        0 0 30px rgba(212, 175, 55, .12);
}

.hero-description {
    max-width: 650px;

    margin:
        22px
        auto
        0;

    font-size: 18px;

    line-height: 1.5;

    letter-spacing: 2px;

    color:
        rgba(255, 255, 255, .75);
}

/* =========================================================
   КНОПКИ HERO
========================================================= */

.hero-buttons {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    width: 100%;
}

/* =========================================================
   ГЛАВНАЯ КНОПКА
========================================================= */

.main-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    min-width: 240px;

    margin-top: 28px;

    padding:
        15px
        28px;

    border:
        1px solid
        rgba(212, 175, 55, .55);

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(212, 175, 55, .22),
            rgba(0, 0, 0, .65)
        );

    color: #fff;

    font-size: 16px;

    font-weight: 700;

    letter-spacing: 2px;

    cursor: pointer;

    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.main-button:hover {
    transform:
        translateY(-3px);

    border-color:
        var(--gold-light);

    background:
        linear-gradient(
            135deg,
            rgba(212, 175, 55, .35),
            rgba(0, 0, 0, .7)
        );

    box-shadow:
        0 10px 30px
        rgba(212, 175, 55, .15);
}

.main-button:active {
    transform:
        scale(.97);
}

.button-arrow {
    transition:
        transform .2s ease;
}

.main-button:hover .button-arrow {
    transform:
        translateX(4px);
}

/* =========================================================
   КАБИНЕТ БАРБЕРА
   ТЕПЕРЬ В ТОМ ЖЕ СТИЛЕ, ЧТО И "ЗАПИСАТЬСЯ"
========================================================= */

.barber-login-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    min-width: 240px;

    margin-top: 12px;

    padding:
        15px
        28px;

    border:
        1px solid
        rgba(212, 175, 55, .55);

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(212, 175, 55, .22),
            rgba(0, 0, 0, .65)
        );

    color: #fff;

    text-decoration: none;

    font-size: 16px;

    font-weight: 700;

    letter-spacing: 2px;

    cursor: pointer;

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);

    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.barber-login-button:hover {
    transform:
        translateY(-3px);

    border-color:
        var(--gold-light);

    background:
        linear-gradient(
            135deg,
            rgba(212, 175, 55, .35),
            rgba(0, 0, 0, .7)
        );

    box-shadow:
        0 10px 30px
        rgba(212, 175, 55, .15);
}

.barber-login-button:active {
    transform:
        scale(.97);
}

/* Старый значок скрываем */

.barber-login-icon {
    display: none;
}

/* Стрелка */

.barber-login-arrow {
    color: #fff;

    transition:
        transform .2s ease;
}

.barber-login-button:hover
.barber-login-arrow {
    transform:
        translateX(4px);
}

/* =========================================================
   ИНФОРМАЦИЯ
========================================================= */

.hero-info {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 18px;

    margin-top: 20px;

    font-size: 12px;

    letter-spacing: 2px;

    color:
        rgba(255, 255, 255, .7);
}

.hero-info-item {
    display: flex;

    align-items: center;

    gap: 7px;
}

.info-dot {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background:
        var(--gold);
}

.hero-info-divider {
    width: 1px;
    height: 15px;

    background:
        rgba(255, 255, 255, .25);
}

/* =========================================================
   SCROLL
========================================================= */

.hero-scroll {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 8px;

    margin-top: 25px;

    color:
        rgba(255, 255, 255, .35);

    font-size: 9px;

    letter-spacing: 3px;
}

.hero-scroll span {
    width: 1px;
    height: 28px;

    background:
        linear-gradient(
            to bottom,
            var(--gold),
            transparent
        );
}

/* =========================================================
   КОНТЕЙНЕРЫ
========================================================= */

.page-container {
    width: 100%;

    max-width: 950px;

    margin:
        0 auto;
}

/* =========================================================
   КНОПКА НАЗАД
========================================================= */

.back-button {
    position: fixed;

    top: 18px;
    left: 18px;

    z-index: 20;

    padding:
        10px
        16px;

    border:
        1px solid
        rgba(212, 175, 55, .3);

    border-radius: 999px;

    background:
        rgba(0, 0, 0, .55);

    color: #fff;

    font-size: 14px;

    cursor: pointer;

    backdrop-filter:
        blur(10px);

    transition:
        .2s ease;
}

.back-button:hover {
    border-color:
        var(--gold);

    background:
        rgba(212, 175, 55, .12);

    transform:
        translateX(3px);
}

/* =========================================================
   ЗАГОЛОВКИ
========================================================= */

.section-heading {
    margin:
        5px
        0
        28px;

    text-align: center;
}

.section-label {
    margin-bottom: 7px;

    color:
        var(--gold);

    font-size: 12px;

    letter-spacing: 3px;

    text-transform: uppercase;
}

.section-number {
    color:
        rgba(212, 175, 55, .6);

    font-size: 11px;

    letter-spacing: 2px;
}

.section-heading h2 {
    margin-bottom: 9px;

    color: #fff;

    font-size: 38px;

    line-height: 1;
}

.section-heading p {
    color:
        rgba(255, 255, 255, .62);

    font-size: 16px;
}

/* =========================================================
   СПИСОК КАРТОЧЕК
========================================================= */

.choices-list {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px;

    margin-top: 20px;
}

/* =========================================================
   ОБЩАЯ КАРТОЧКА
========================================================= */

.choice-card {
    position: relative;

    overflow: hidden;

    min-height: 90px;

    padding: 18px;

    border:
        1px solid
        rgba(212, 175, 55, .22);

    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .06),
            rgba(0, 0, 0, .62)
        );

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, .3);

    color: #fff;

    cursor: pointer;

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.choice-card:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(212, 175, 55, .65);

    background:
        linear-gradient(
            145deg,
            rgba(212, 175, 55, .1),
            rgba(0, 0, 0, .7)
        );

    box-shadow:
        0 14px 35px
        rgba(0, 0, 0, .4),
        0 0 22px
        rgba(212, 175, 55, .1);
}

.choice-card:active {
    transform:
        scale(.98);
}

/* =========================================================
   БАРБЕРЫ
========================================================= */

.choice-card.barber-card {
    min-height: 85px;

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;
}

.choice-card.barber-card strong {
    position: relative;

    z-index: 2;

    font-size: 26px;

    letter-spacing: .5px;

    color: #fff;

    transition:
        color .2s ease,
        transform .2s ease;
}

.choice-card.barber-card:hover strong {
    color:
        var(--gold-light);

    transform:
        scale(1.03);
}

/* =========================================================
   УСЛУГИ
========================================================= */

.choice-card.service-card {
    min-height: 95px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 6px;

    text-align: center;
}

.choice-card.service-card strong {
    position: relative;

    z-index: 2;

    font-size: 21px;

    color: #fff;
}

.choice-card.service-card span {
    position: relative;

    z-index: 2;

    color:
        rgba(255, 255, 255, .65);

    font-size: 15px;
}

/* =========================================================
   КАЛЕНДАРЬ
========================================================= */

.calendar-wrapper {
    width: 100%;

    padding: 18px;

    border:
        1px solid
        rgba(212, 175, 55, .22);

    border-radius: 20px;

    background:
        rgba(0, 0, 0, .58);

    box-shadow:
        0 15px 45px
        rgba(0, 0, 0, .35);

    backdrop-filter:
        blur(12px);
}

.calendar-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 16px;
}

.calendar-title {
    color: #fff;

    font-size: 22px;

    font-weight: 700;

    letter-spacing: 1px;
}

.calendar-nav {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(212, 175, 55, .25);

    border-radius: 12px;

    background:
        rgba(212, 175, 55, .06);

    color: #fff;

    font-size: 24px;

    cursor: pointer;

    transition: .2s ease;
}

.calendar-nav:hover {
    background:
        rgba(212, 175, 55, .15);

    border-color:
        var(--gold);

    transform:
        scale(1.05);
}

/* =========================================================
   ДНИ НЕДЕЛИ
========================================================= */

.weekdays {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    gap: 5px;

    margin-bottom: 7px;
}

.weekdays div {
    text-align: center;

    color:
        rgba(255, 255, 255, .45);

    font-size: 11px;

    letter-spacing: 1px;
}

/* =========================================================
   ДНИ
========================================================= */

.calendar-days {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    gap: 5px;
}

.calendar-day {
    min-height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(212, 175, 55, .12);

    border-radius: 12px;

    background:
        rgba(255, 255, 255, .035);

    color: #fff;

    font-size: 15px;

    cursor: pointer;

    transition: .2s ease;
}

.calendar-day:hover:not(:disabled) {
    border-color:
        rgba(212, 175, 55, .6);

    background:
        rgba(212, 175, 55, .12);

    transform:
        scale(1.04);
}

.calendar-day:disabled {
    opacity: .25;

    cursor: not-allowed;
}

.calendar-day.selected {
    background:
        linear-gradient(
            145deg,
            rgba(212, 175, 55, .4),
            rgba(212, 175, 55, .14)
        );

    border-color:
        var(--gold-light);

    box-shadow:
        0 0 18px
        rgba(212, 175, 55, .18);
}

/* =========================================================
   ВРЕМЯ
========================================================= */

.time-slots {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 9px;

    margin:
        18px
        0
        22px;
}

.time-slot {
    min-height: 52px;

    padding:
        9px
        5px;

    border:
        1px solid
        rgba(212, 175, 55, .16);

    border-radius: 12px;

    background:
        rgba(255, 255, 255, .035);

    color: #fff;

    font-size: 14px;

    cursor: pointer;

    transition: .2s ease;
}

.time-slot:hover:not(:disabled) {
    border-color:
        rgba(212, 175, 55, .65);

    background:
        rgba(212, 175, 55, .12);

    transform:
        translateY(-2px);
}

.time-slot:disabled {
    opacity: .25;

    cursor: not-allowed;
}

.time-slot.selected {
    background:
        linear-gradient(
            145deg,
            rgba(212, 175, 55, .4),
            rgba(212, 175, 55, .15)
        ) !important;

    border-color:
        var(--gold-light) !important;

    box-shadow:
        0 0 18px
        rgba(212, 175, 55, .2);
}

/* =========================================================
   НИЖНЯЯ КНОПКА ЗАПИСИ
========================================================= */

.booking-bottom {
    display: flex;

    justify-content: center;

    margin-top: 8px;
}

.booking-bottom .main-button {
    margin-top: 0;
}

/* =========================================================
   ЗАГРУЗКА / ОШИБКА
========================================================= */

.loading {
    padding: 30px;

    text-align: center;

    color:
        rgba(255, 255, 255, .65);
}

.error {
    padding: 20px;

    text-align: center;

    color: #ff7777;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    width: 100%;

    padding:
        30px
        18px
        35px;

    text-align: center;

    border-top:
        1px solid
        rgba(212, 175, 55, .15);

    background:
        rgba(0, 0, 0, .4);
}

.footer-inner {
    max-width: 950px;

    margin: 0 auto;
}

.footer-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}

.footer-mini {
    color:
        rgba(255, 255, 255, .4);

    font-size: 9px;

    letter-spacing: 3px;
}

.footer-brand {
    margin-bottom: 8px;

    color:
        var(--gold-light);

    font-size: 23px;

    font-weight: 700;

    letter-spacing: 5px;
}

.footer-location {
    color:
        rgba(255, 255, 255, .6);

    font-size: 11px;

    letter-spacing: 2px;
}

.footer-contact {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 35px;
}

.footer-contact-item {
    display: flex;

    flex-direction: column;

    gap: 5px;
}

.footer-contact-label {
    color:
        rgba(255, 255, 255, .35);

    font-size: 9px;

    letter-spacing: 2px;
}

.footer-contact-value {
    color:
        rgba(255, 255, 255, .65);

    font-size: 13px;

    text-decoration: none;
}

.footer-phone:hover {
    color:
        var(--gold-light);
}

.footer-links {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 20px;

    margin-top: 17px;
}

.footer-links a,
.admin-link {
    color:
        rgba(255, 255, 255, .7);

    text-decoration: none;

    font-size: 13px;

    transition: .2s ease;
}

.footer-links a:hover,
.admin-link:hover {
    color:
        var(--gold-light);
}

.admin-link {
    display: inline-block;

    margin-top: 18px;
}

.footer-divider {
    width: 80px;
    height: 1px;

    margin:
        18px
        auto;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--gold),
            transparent
        );
}

.footer-bottom {
    margin-top: 22px;

    color:
        rgba(255, 255, 255, .3);

    font-size: 11px;

    letter-spacing: 1px;
}

/* =========================================================
   ДЕКОРАТИВНЫЕ ЭЛЕМЕНТЫ
========================================================= */

.page-noise {
    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: -1;

    opacity: .035;

    background-image:
        radial-gradient(
            rgba(255, 255, 255, .5) .5px,
            transparent .5px
        );

    background-size: 4px 4px;
}

.gold-glow {
    position: fixed;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background:
        rgba(212, 175, 55, .08);

    filter:
        blur(100px);

    pointer-events: none;

    z-index: -1;
}

.gold-glow-1 {
    top: -100px;
    left: -100px;
}

.gold-glow-2 {
    right: -100px;
    bottom: -100px;
}

/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
========================================================= */

@media (max-width: 700px) {

    .screen {
        padding:
            72px
            12px
            30px;
    }

    .hero {
        min-height: 68vh;

        padding: 15px;
    }

    .hero-topline {
        font-size: 9px;

        letter-spacing: 3px;
    }

    .brand {
        font-size: 15px;

        letter-spacing: 5px;
    }

    .brand-line {
        width: 48px;

        margin:
            10px
            auto
            15px;
    }

    .hero-small-title {
        font-size: 9px;

        letter-spacing: 2.5px;
    }

    .hero h1 {
        font-size: 55px;

        letter-spacing: -1px;
    }

    .hero-description {
        max-width: 340px;

        margin-top: 15px;

        font-size: 15px;

        letter-spacing: 1.5px;
    }

    .hero-info {
        gap: 9px;

        margin-top: 15px;

        font-size: 9px;
    }

    .hero-info-divider {
        height: 12px;
    }

    .main-button {
        min-width: 210px;

        margin-top: 20px;

        padding:
            13px
            20px;

        font-size: 15px;
    }

    .barber-login-button {
        min-width: 210px;

        margin-top: 10px;

        padding:
            13px
            20px;

        font-size: 15px;

        letter-spacing: 2px;
    }

    .section-heading {
        margin-bottom: 18px;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .section-heading p {
        font-size: 15px;
    }

    .choices-list {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 10px;
    }

    .choice-card {
        min-height: 75px;

        padding:
            12px
            8px;

        border-radius: 15px;
    }

    .choice-card.barber-card {
        min-height: 75px;
    }

    .choice-card.barber-card strong {
        font-size: 21px;
    }

    .choice-card.service-card {
        min-height: 82px;

        padding: 11px;
    }

    .choice-card.service-card strong {
        font-size: 18px;
    }

    .choice-card.service-card span {
        font-size: 14px;
    }

    .calendar-wrapper {
        padding: 12px;

        border-radius: 18px;
    }

    .calendar-title {
        font-size: 18px;
    }

    .calendar-nav {
        width: 36px;
        height: 36px;

        font-size: 20px;
    }

    .calendar-day {
        min-height: 39px;

        border-radius: 10px;

        font-size: 14px;
    }

    .time-slots {
        grid-template-columns:
            repeat(4, 1fr);

        gap: 6px;
    }

    .time-slot {
        min-height: 48px;

        padding:
            7px
            3px;

        border-radius: 10px;

        font-size: 13px;
    }

    .back-button {
        top: 10px;
        left: 10px;

        padding:
            8px
            13px;

        font-size: 13px;
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-contact {
        flex-direction: column;

        gap: 15px;
    }

    .site-footer {
        padding:
            22px
            12px
            28px;
    }

    .footer-brand {
        font-size: 20px;

        letter-spacing: 4px;
    }
}

/* =========================================================
   ОЧЕНЬ МАЛЕНЬКИЙ ТЕЛЕФОН
========================================================= */

@media (max-width: 400px) {

    .hero h1 {
        font-size: 48px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-info {
        font-size: 8px;
    }

    .barber-login-button {
        min-width: 195px;

        margin-top: 10px;

        padding:
            10px
            16px;

        font-size: 13px;

        letter-spacing: 1.5px;
    }

    .choices-list {
        gap: 8px;
    }

    .choice-card.barber-card strong {
        font-size: 18px;
    }

    .choice-card.service-card strong {
        font-size: 16px;
    }

    .choice-card.service-card span {
        font-size: 13px;
    }

    .calendar-day {
        min-height: 36px;

        font-size: 13px;
    }

    .time-slots {
        gap: 5px;
    }

    .time-slot {
        min-height: 44px;

        font-size: 12px;
    }
}
