:root {
    --bg: #070b12;
    --text: #f5f7fb;
    --muted: rgba(255, 255, 255, 0.82);
    --line: rgba(255, 255, 255, 0.08);

    --btn-dark: rgba(42, 28, 22, 0.92);
    --btn-dark-hover: rgba(56, 37, 29, 0.96);
    --btn-light: rgba(255, 255, 255, 0.10);
    --btn-light-hover: rgba(255, 255, 255, 0.16);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    width: 100%;
}

/* HERO */
.hero {
    position: relative;
    width: 100%;
    min-height: 82vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0;
    isolation: isolate;
}

/* background fotka */
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: -3;
}

/* tmavý overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
            linear-gradient(
                    90deg,
                    rgba(7, 10, 16, 0.72) 0%,
                    rgba(7, 10, 16, 0.48) 32%,
                    rgba(7, 10, 16, 0.30) 55%,
                    rgba(7, 10, 16, 0.24) 100%
            ),
            linear-gradient(
                    180deg,
                    rgba(7, 10, 16, 0.18) 0%,
                    rgba(7, 10, 16, 0.30) 48%,
                    rgba(7, 10, 16, 0.46) 100%
            );
}

/* jemné ztmavení dole */
.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 200px;
    background: linear-gradient(
            180deg,
            rgba(7, 10, 16, 0) 0%,
            rgba(7, 10, 16, 0.18) 36%,
            rgba(7, 10, 16, 0.52) 100%
    );
    z-index: -1;
    pointer-events: none;
}

/* TOP BAR */
.hero-topbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    padding: 22px 0;
}

.hero-topbar-inner {
    width: min(1240px, calc(100% - 64px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hero-brand {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.hero-nav a {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.86);
    transition: opacity 0.18s ease;
}

.hero-nav a:hover {
    opacity: 0.75;
}

.hero-content {
    width: min(1240px, calc(100% - 64px));
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-copy {
    max-width: 860px;
}

.eyebrow {
    margin: 20px 0 20px;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.hero h1 {
    margin: 0;
    max-width: 30ch;
    font-size: clamp(3rem, 7vw, 5.6rem);
    line-height: 0.90;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    font-weight: 800;
    margin-inline: auto;
}

.hero-text {
    margin: 20px auto 0;
    max-width: 40ch;
    font-size: clamp(1rem, 1.8vw, 1.12rem);
    line-height: 1.55;
    color: var(--muted);
    font-weight: 600;
}

.buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 34px;
}

.btn {
    min-height: 56px;
    min-width: 200px;
    padding: 0 30px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
    backdrop-filter: blur(4px);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--btn-dark);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.06);
}

.btn-primary:hover {
    background: var(--btn-dark-hover);
}

.btn-secondary {
    background: var(--btn-light);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.14);
}

.btn-secondary:hover {
    background: var(--btn-light-hover);
}

/* TABLET */
@media (max-width: 1024px) {
    .hero {
        min-height: 78vh;
    }

    .hero-topbar-inner,
    .hero-content {
        width: min(1240px, calc(100% - 40px));
    }

    .hero-copy {
        max-width: 700px;
    }

    .hero h1 {
        max-width: 9.2ch;
        font-size: clamp(2.8rem, 8vw, 4.8rem);
    }

    .hero-text {
        max-width: 28ch;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .hero {
        min-height: 76svh;
        align-items: center;
    }

    .hero-bg {
        object-position: center center;
    }

    .hero-overlay {
        background:
                linear-gradient(
                        180deg,
                        rgba(7, 10, 16, 0.20) 0%,
                        rgba(7, 10, 16, 0.38) 34%,
                        rgba(7, 10, 16, 0.76) 100%
                );
    }

    .hero::after {
        height: 120px;
    }

    .hero-topbar {
        padding: 14px 0;
    }

    .hero-topbar-inner,
    .hero-content {
        width: min(1240px, calc(100% - 24px));
    }

    .hero-nav {
        gap: 14px;
    }

    .hero-nav a {
        font-size: 0.82rem;
    }

    .hero-copy {
        max-width: 400px;
    }

    .eyebrow {
        margin-bottom: 12px;
        font-size: 1.2rem;
        letter-spacing: 0.14em;
    }

    .hero h1 {
        font-size: clamp(2.15rem, 11vw, 3.7rem);
        max-width: 15ch;
        line-height: 1.05;
    }

    .hero-text {
        margin-top: 14px;
        max-width: 40ch;
        font-size: 1rem;
        line-height: 1.55;
    }

    .buttons {
        width: 100%;
        gap: 20px;
        margin-top: 30px;
    }

    .btn {
        width: 100%;
        min-width: 0;
        min-height: 50px;
        padding: 0 20px;
        font-size: 0.98rem;
    }
}

.hero-topbar {
    background: rgba(7, 11, 18, 0.91);
}

/* =========================
   BARBER SECTIONS UNDER HERO
========================= */

.barber-shell {
    width: min(1240px, calc(100% - 64px));
    margin: 0 auto;
}

.barber-section {
    padding: 88px 0;
    background: linear-gradient(180deg, #050911 0%, #070c14 100%);
}

.barber-section + .barber-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.barber-section-head {
    margin-bottom: 28px;
}

.barber-kicker {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.barber-section-head h2,
.barber-contact-copy h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: var(--text);
    max-width: 12ch;
}

.barber-section-text {
    margin: 14px 0 0;
    max-width: 52ch;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* SERVICES */
.barber-services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.barber-service-card {
    padding: 24px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
            radial-gradient(circle at top right, rgba(255, 255, 255, 0.03), transparent 24%),
            linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.022));
}

.barber-service-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.barber-service-card h3 {
    margin: 0;
    font-size: 1.28rem;
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.barber-price {
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255,255,255,0.82);
}

.barber-service-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.98rem;
}

/* GALLERY */
.barber-gallery-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
}

.barber-gallery-item {
    min-height: 240px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}

.barber-gallery-item-large {
    grid-row: span 2;
    min-height: 100%;
}

.barber-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.barber-gallery-item:hover img {
    transform: scale(1.03);
}

/* CONTACT */
.barber-contact-card {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 20px;
    padding: 24px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.08);
    background:
            radial-gradient(circle at top right, rgba(110, 168, 255, 0.05), transparent 24%),
            linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.022));
}

.barber-contact-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.barber-contact-point {
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.035);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.barber-contact-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.62);
}

.barber-contact-point strong {
    font-size: 1rem;
    line-height: 1.4;
}

.barber-contact-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.barber-map-box {
    min-width: 0;
}

.barber-map-placeholder {
    width: 100%;
    min-height: 100%;
    height: 100%;
    border-radius: 24px;
    border: 1px dashed rgba(255,255,255,0.12);
    background:
            linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.02)),
            repeating-linear-gradient(
                    135deg,
                    rgba(255,255,255,0.018) 0px,
                    rgba(255,255,255,0.018) 14px,
                    rgba(0,0,0,0.03) 14px,
                    rgba(0,0,0,0.03) 28px
            );
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.58);
    font-weight: 600;
    min-height: 340px;
}

/* FOOTER */
.barber-footer {
    padding: 24px 0 36px;
    background: #050911;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.barber-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.barber-footer p {
    margin: 0;
    color: rgba(255,255,255,0.62);
    font-size: 0.92rem;
}

/* TABLET */
@media (max-width: 1024px) {
    .barber-shell {
        width: min(1240px, calc(100% - 40px));
    }

    .barber-services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .barber-gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .barber-gallery-item-large {
        grid-row: span 1;
    }

    .barber-contact-card {
        grid-template-columns: 1fr;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .barber-shell {
        width: min(1240px, calc(100% - 24px));
    }

    .barber-section {
        padding: 64px 0;
    }

    .barber-section-head h2,
    .barber-contact-copy h2 {
        max-width: 13ch;
        font-size: clamp(1.55rem, 7vw, 2.2rem);
        line-height: 0.98;
    }

    .barber-section-text {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .barber-services-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .barber-service-card {
        padding: 20px;
        border-radius: 22px;
    }

    .barber-service-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .barber-gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .barber-gallery-item,
    .barber-gallery-item-large {
        min-height: 220px;
    }

    .barber-contact-card {
        padding: 18px;
        border-radius: 24px;
    }

    .barber-contact-points {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .barber-contact-actions {
        gap: 12px;
    }

    .barber-contact-actions .btn {
        width: 100%;
    }

    .barber-map-placeholder {
        min-height: 220px;
    }

    .barber-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .mobile-hide {
        display: none;
    }
}

@media (max-width: 768px) {
    .barber-section-head h2,
    .barber-contact-copy h2 {
        max-width: 12ch;
        font-size: clamp(1.75rem, 8vw, 2.45rem);
        line-height: 0.96;
    }

    .barber-section-text {
        margin-top: 10px;
        max-width: 30ch;
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .barber-gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .barber-gallery-item,
    .barber-gallery-item-large {
        min-height: unset;
        height: auto;
    }

    /* první atmosférická fotka */
    .barber-gallery-item-first {
        aspect-ratio: 16 / 10;
    }

    /* druhá detailní fotka */
    .barber-gallery-item-second {
        aspect-ratio: 4 / 5;
    }

    .barber-gallery-item img,
    .barber-gallery-item-large img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .mobile-hide {
        display: none;
    }
}

.barber-footer {
    padding: 72px 0 40px;
    background:
            linear-gradient(180deg, rgba(5, 9, 17, 0.92) 0%, #050911 100%);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.barber-footer-inner {
    width: min(1240px, calc(100% - 64px));
    margin: 0 auto;
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    background:
            radial-gradient(circle at top right, rgba(255,255,255,0.04), transparent 22%),
            linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
}

.barber-footer-copy h4 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    color: var(--text);
    max-width: 11ch;
}

.barber-footer-copy p:last-child {
    margin: 14px 0 0;
    max-width: 52ch;
    color: var(--muted);
    line-height: 1.7;
    font-size: 1rem;
}

.barber-footer-actions {
    display: grid;
    gap: 18px;
    justify-items: start;
}

.barber-footer-primary {
    min-height: 54px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--btn-dark);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: background 0.18s ease, transform 0.18s ease;
}

.barber-footer-primary:hover {
    background: var(--btn-dark-hover);
    transform: translateY(-1px);
}

.barber-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.barber-footer-links a {
    padding: 11px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.045);
    color: rgba(255,255,255,0.88);
    font-size: 0.94rem;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.barber-footer-links a:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.14);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .barber-footer {
        padding: 56px 0 28px;
    }

    .barber-footer-inner {
        width: min(1240px, calc(100% - 24px));
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 20px;
        border-radius: 22px;
    }

    .barber-footer-copy h4 {
        max-width: 10ch;
        font-size: clamp(1.55rem, 8vw, 2.3rem);
    }

    .barber-footer-copy p:last-child {
        font-size: 0.96rem;
        line-height: 1.6;
    }

    .barber-footer-actions {
        justify-items: stretch;
    }

    .barber-footer-primary {
        width: 100%;
    }

    .barber-footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .barber-footer-links a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}