:root {
    --bg: #070707;
    --bg-soft: #0d1012;
    --card: #111519;
    --card-2: #171b20;
    --gold: #d6ad4b;
    --gold-2: #f0d07b;
    --text: #f8f5ed;
    --muted: #b8b5ad;
    --line: rgba(214, 173, 75, .35);
    --danger: #ff6b6b;
    --success: #4ade80;
    --warning: #facc15;
    --info: #7dd3fc;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(214, 173, 75, .10), transparent 26rem),
        radial-gradient(circle at top right, rgba(255, 255, 255, .08), transparent 28rem),
        var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

.container {
    width: min(1180px, 92%);
    margin: auto
}

.header {
    position: relative;
    z-index: 1000;
    background: rgba(5, 5, 5, .88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(214, 173, 75, .16);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 16px 0
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: max-content
}

.brand-mark {
    width: 46px;
    height: 46px;
    border: 1px solid var(--gold);
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--gold);
    font-size: 24px;
    background: rgba(214, 173, 75, .08)
}

.brand-text strong {
    display: block;
    font-size: 30px;
    letter-spacing: 3px;
    line-height: .9;
    color: var(--gold);
    font-family: Georgia, serif
}

.brand-text span {
    display: block;
    letter-spacing: 4px;
    font-size: 11px;
    color: var(--gold-2);
    font-weight: bold
}

.menu {
    display: flex;
    align-items: center;
    gap: 26px;
    color: #eee;
    font-size: 14px
}

.menu a {
    opacity: .9;
    position: relative
}

.menu a:hover,
.menu a.active {
    color: var(--gold-2)
}

.menu a.active:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -13px;
    height: 2px;
    background: var(--gold)
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    border-radius: 8px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
    line-height: 1;
    border-color: rgba(214, 173, 75, .55);
    font-size: 14px
}

.btn:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    box-shadow: 0 10px 26px rgba(214, 173, 75, .13)
}

.btn-gold,
.btn-primary {
    background: linear-gradient(135deg, #f2d47e, #c8922e);
    color: #111;
    border-color: #f2d47e
}

.btn-dark {
    background: #0c0e11;
    color: #fff
}

.btn-block {
    width: 100%
}

.btn-sm {
    padding: 9px 12px;
    font-size: 13px;
    border-radius: 7px
}

.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(214, 173, 75, .18)
}

.hero-inner {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    min-height: 570px;
    align-items: center;
    gap: 36px;
    padding: 70px 0 54px
}

.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #070707 0%, rgba(7, 7, 7, .95) 32%, rgba(7, 7, 7, .35) 100%), url('../images/hero_barber.png') center right/cover no-repeat;
    z-index: -2
}

.hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #070707 0%, transparent 35%);
    z-index: -1
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-2);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 14px
}

.eyebrow:before {
    content: "";
    width: 36px;
    height: 1px;
    background: var(--gold)
}

h1 {
    font-family: Georgia, serif;
    font-size: clamp(42px, 6vw, 76px);
    line-height: .97;
    margin: 0 0 18px
}

.gold {
    color: var(--gold)
}

.lead {
    color: #e7e2d6;
    line-height: 1.8;
    font-size: 17px;
    max-width: 650px;
    margin: 0 0 28px
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

.hero-badge-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px
}

.mini-badge {
    padding: 12px 16px;
    border: 1px solid rgba(214, 173, 75, .3);
    border-radius: 14px;
    background: rgba(12, 14, 17, .75);
    min-width: 130px
}

.mini-badge strong {
    display: block;
    color: var(--gold);
    font-size: 22px
}

.mini-badge span {
    font-size: 12px;
    color: var(--muted)
}

.section {
    padding: 66px 0
}

.section-tight {
    padding: 36px 0
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
    margin-bottom: 30px;
    font-family: Georgia, serif;
    letter-spacing: 2px;
    font-size: 24px;
    text-transform: uppercase
}

.section-title:before,
.section-title:after {
    content: "";
    width: 110px;
    height: 1px;
    background: var(--gold)
}

.section-subtitle {
    max-width: 760px;
    margin: -14px auto 30px;
    text-align: center;
    color: var(--muted);
    line-height: 1.7;
    font-size: 15px
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px
}

.card {
    background: linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
    border: 1px solid rgba(214, 173, 75, .32);
    border-radius: 16px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .23);
    overflow: hidden
}

.card-pad {
    padding: 24px
}

.quick-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 18px;
    align-items: center
}

.icon-big {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #f5d981, #be862a);
    color: #16110a;
    font-size: 30px;
    font-weight: 900
}

.quick-card h3,
.catalog-card h3 {
    margin: 0 0 8px;
    font-family: Georgia, serif
}

.quick-card p,
.catalog-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55
}

.quick-card a {
    display: inline-block;
    margin-top: 12px;
    color: var(--gold-2);
    font-weight: bold
}

.catalog-card {
    transition: .25s;
    background: linear-gradient(145deg, #11161a, #08090b);
    height: 100%
}

.catalog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(214, 173, 75, .10)
}

.catalog-card img {
    height: 180px;
    width: 100%;
    object-fit: cover
}

.catalog-body {
    padding: 18px
}

.price {
    display: block;
    margin-top: 16px;
    color: var(--gold-2);
    font-weight: 900;
    font-size: 20px
}

.duration {
    display: inline-block;
    margin-top: 12px;
    color: #dcd6c7;
    font-size: 12px;
    border: 1px solid rgba(214, 173, 75, .25);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(214, 173, 75, .06)
}

.split {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 28px;
    align-items: start
}

.form-card {
    padding: 24px
}

.form-title {
    font-family: Georgia, serif;
    margin: 0 0 18px;
    letter-spacing: 1px
}

.form-group {
    margin-bottom: 14px
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #e8dec7;
    font-weight: 700;
    font-size: 14px
}

.input,
select,
textarea {
    width: 100%;
    background: #0b0d10;
    border: 1px solid rgba(214, 173, 75, .28);
    color: #fff;
    border-radius: 9px;
    padding: 13px 14px;
    outline: none;
    font-size: 15px
}

textarea {
    min-height: 96px;
    resize: vertical
}

.input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(214, 173, 75, .12)
}

.note {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px
}

.gallery img {
    height: 142px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(214, 173, 75, .28)
}

.testimonials {
    display: grid;
    gap: 12px
}

.testimonial {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 13px;
    padding: 14px;
    border: 1px solid rgba(214, 173, 75, .24);
    border-radius: 14px;
    background: rgba(255, 255, 255, .035)
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f2d47e, #93691c);
    display: grid;
    place-items: center;
    color: #111;
    font-weight: 900
}

.stars {
    color: #ffc84d;
    letter-spacing: 2px
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px
}

.step {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 13px;
    align-items: center;
    padding: 18px
}

.step-number {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5d981, #be862a);
    color: #111;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 20px
}

.step h4 {
    margin: 0 0 5px
}

.step p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4
}

.footer {
    border-top: 1px solid rgba(214, 173, 75, .2);
    background: #08090b;
    padding: 48px 0 20px
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 32px
}

.footer h4 {
    color: var(--gold);
    margin: 0 0 14px;
    font-family: Georgia, serif
}

.footer p,
.footer li {
    color: var(--muted);
    line-height: 1.65
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0
}

.footer li {
    margin: 8px 0
}

.copyright {
    text-align: center;
    color: #888;
    border-top: 1px solid rgba(214, 173, 75, .16);
    margin-top: 30px;
    padding-top: 18px;
    font-size: 13px
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .75)), url('../images/hero_barber.png') center/cover no-repeat
}

.auth-card {
    width: min(480px, 92%);
    padding: 32px
}

.alert {
    padding: 13px 15px;
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid
}

.alert.success {
    border-color: rgba(74, 222, 128, .45);
    background: rgba(74, 222, 128, .1);
    color: #bbf7d0
}

.alert.danger {
    border-color: rgba(255, 107, 107, .45);
    background: rgba(255, 107, 107, .1);
    color: #fecaca
}

.alert.info {
    border-color: rgba(125, 211, 252, .45);
    background: rgba(125, 211, 252, .1);
    color: #bae6fd
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh
}

.sidebar {
    background: #08090b;
    border-right: 1px solid rgba(214, 173, 75, .18);
    padding: 24px;
    position: sticky;
    top: 0;
    height: 100vh
}

.sidebar-menu {
    display: grid;
    gap: 8px;
    margin-top: 30px
}

.sidebar-menu a {
    padding: 12px 14px;
    border-radius: 10px;
    color: #ddd
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(214, 173, 75, .12);
    color: var(--gold-2)
}

.main {
    padding: 32px;
    background: radial-gradient(circle at top right, rgba(214, 173, 75, .08), transparent 360px), #0a0b0d
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px
}

.stat {
    padding: 22px
}

.stat span {
    color: var(--muted);
    font-size: 13px
}

.stat strong {
    display: block;
    color: var(--gold);
    font-size: 32px;
    margin-top: 7px
}

.table-wrap {
    overflow: auto;
    border-radius: 14px;
    border: 1px solid rgba(214, 173, 75, .22)
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #0e1114
}

th,
td {
    padding: 14px 13px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    vertical-align: top
}

th {
    color: var(--gold-2);
    background: #11161a;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px
}

td {
    color: #eee
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid
}

.badge.info {
    color: #bae6fd;
    background: rgba(125, 211, 252, .11);
    border-color: rgba(125, 211, 252, .35)
}

.badge.warning {
    color: #fef08a;
    background: rgba(250, 204, 21, .11);
    border-color: rgba(250, 204, 21, .35)
}

.badge.success {
    color: #bbf7d0;
    background: rgba(74, 222, 128, .11);
    border-color: rgba(74, 222, 128, .35)
}

.badge.danger {
    color: #fecaca;
    background: rgba(255, 107, 107, .11);
    border-color: rgba(255, 107, 107, .35)
}

.status-box {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    align-items: center
}

.queue-number {
    width: 140px;
    height: 140px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f2d47e, #a56f22);
    color: #111
}

.queue-number strong {
    font-size: 60px
}

.empty {
    padding: 30px;
    text-align: center;
    color: var(--muted)
}

.mobile-only {
    display: none
}

@media(max-width:1050px) {
    .menu {
        display: none
    }

    .hero-inner,
    .split {
        grid-template-columns: 1fr
    }

    .grid-5 {
        grid-template-columns: repeat(2, 1fr)
    }

    .grid-3,
    .steps,
    .footer-grid,
    .stats {
        grid-template-columns: repeat(2, 1fr)
    }

    .dashboard-layout {
        grid-template-columns: 1fr
    }

    .sidebar {
        height: auto;
        position: relative
    }

    .status-box {
        grid-template-columns: 1fr
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:680px) {
    .nav {
        align-items: flex-start;
        flex-direction: column
    }

    .nav-actions {
        width: 100%;
        justify-content: flex-start
    }

    .grid-5,
    .grid-4,
    .grid-3,
    .steps,
    .footer-grid,
    .stats {
        grid-template-columns: 1fr
    }

    .section-title:before,
    .section-title:after {
        width: 38px
    }

    .quick-card {
        grid-template-columns: 1fr
    }

    .hero-inner {
        min-height: auto;
        padding: 55px 0
    }

    .btn {
        width: 100%
    }

    h1 {
        font-size: 40px
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start
    }

    .main {
        padding: 20px
    }

    .catalog-card img {
        height: 220px
    }
}