/* =========================================================
   BARBER FORGE — Brutal/Premium (Pure CSS)
   Цвета: чёрный, белый, красный
   Шрифты: Bebas Neue (заголовки), Oswald (текст)
   ========================================================= */

/* CSS Reset (минимальный, безопасный) */
* { 
    box-sizing: border-box; 
}

html, body { 
    height: 100%; 
}

body {
    margin: 0;
    background: #0b0b0c;
    color: #f3f3f3;
    font-family: "Oswald", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.5;
}

img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p, h1, h2, h3 { margin: 0; }
code { color: #ff3b30; }

:root {
    --bg: #0b0b0c;
    --bg2: #0f0f12;
    --card: #121216;
    --stroke: rgba(255, 255, 255, .10);
    --stroke2: rgba(255, 255, 255, .14);
    --text: #f3f3f3;
    --muted: rgba(255, 255, 255, .72);
    --muted2: rgba(255, 255, 255, .55);
    --accent: #e10600; /* красный */
    --accent2: #ff2a2a;
    --shadow: 0 18px 60px rgba(0, 0, 0, .45);
    --radius: 12px; /* Сокращение радиуса для использования по всему проекту */
    --container: 1200px;
}

/* Доступность */
.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: #fff;
    color: #000;
    padding: 10px 12px;
    border-radius: 10px;
    z-index: 9999;
}

.skip-link:focus { 
    left: 12px; 
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 11, 12, .72);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--stroke);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand__mark {
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent), #6a0000);
    display: grid;
    place-items: center;
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: .08em;
}

.brand__name {
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: .16em;
    font-size: 18px;
    opacity: .95;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.common-btn {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    background: rgba(255, 255, 255, .03);
    transition: transform .15s ease, border-color .15s ease;
}

.common-btn:hover {
    transform: translateY(-1px);
}

.nav {
    position: relative;
}

.nav__toggle {
    display: none;
    border: 1px solid var(--stroke2);
    color: var(--text);
    font-family: inherit;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav__link {
    display: inline-flex;
    padding: 10px 10px;
    border-radius: var(--radius);
    color: var(--muted);
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.nav__link:hover {
    background: rgba(255, 255, 255, .05);
    color: var(--text);
    transform: translateY(-1px);
}

.nav__link.active {
    color: var(--text);
    background: rgba(225, 6, 0, .14);
    border: 1px solid rgba(225, 6, 0, .30);
}

.nav__link--cta {
    background: rgba(225, 6, 0, .18);
}

/* Mobile nav */
@media (max-width: 980px) {
    .nav__toggle { 
        display: inline-flex; 
    }

    .nav__list {
        position: absolute;
        right: 0;
        top: calc(100% + 10px);
        width: min(360px, 92vw);
        background: rgba(18, 18, 22, .96);
        border: 1px solid var(--stroke2);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        padding: 10px;
        display: none;
        flex-direction: column;
        align-items: stretch;
    }

    body.nav-open .nav__list { display: flex; }

    .nav__link { justify-content: center; }
}

/* =========================================================
   Buttons / Links
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
    letter-spacing: .06em;
    transition: transform .15s ease, filter .15s ease, background .15s ease, border-color .15s ease;
    user-select: none;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.btn:active { 
    transform: translateY(0); 
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent), #7f0000);
    border-color: rgba(255, 255, 255, .08);
    color: #fff;
}

.btn--ghost {
    background: rgba(255, 255, 255, .03);
    border-color: var(--stroke2);
    color: var(--text);
}

.btn--block { 
    width: 100%; 
}

.link {
    color: var(--text);
    border-bottom: 1px solid rgba(255, 255, 255, .22);
}

.link:hover {
    border-bottom-color: rgba(225, 6, 0, .8);
    color: #fff;
}

.dot { 
    opacity: .35; 
    padding: 0 8px; 
}

.sticky-book {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1200;
    background: linear-gradient(135deg, var(--accent), #7f0000);
    color: #fff;
    padding: 14px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 16px 50px rgba(225, 6, 0, .18);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 14px;
}

.sticky-book:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

@media (max-width: 420px) {
    .sticky-book {
        left: 16px; 
        right: 16px; 
        text-align: center; 
    }
}

/* =========================================================
   Typography helpers
   ========================================================= */
.kicker {
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: 12px;
    color: var(--muted2);
}

.muted { 
    color: var(--muted); 
}

.small { 
    font-size: 13px; 
    color: var(--muted2); 
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
    position: relative;
    min-height: calc(100vh - 72px);
    display: grid;
    align-items: end;
    overflow: clip;
    border-bottom: 1px solid var(--stroke);
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05) saturate(.95);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 420px at 18% 68%, rgba(225, 6, 0, .25), transparent 55%),
        linear-gradient(to top, rgba(11, 11, 12, .92), rgba(11, 11, 12, .18) 55%, rgba(11, 11, 12, .55));
}

.hero__content {
    position: relative;
    padding: 34px 0 28px;
}

.hero__title {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(46px, 7vw, 92px);
    letter-spacing: .04em;
    line-height: .95;
    margin-top: 10px;
    max-width: 18ch;
}

.hero__subtitle {
    margin-top: 10px;
    max-width: 54ch;
    color: var(--muted);
    font-size: 18px;
}

.hero__cta {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero__meta {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.meta-item {
    border: 1px solid var(--stroke);
    background: rgba(0, 0, 0, .18);
    border-radius: var(--radius);
    padding: 12px 12px;
}

.meta-item__label {
    display: block;
    color: var(--muted2);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .16em;
}

.meta-item__value {
    display: block;
    margin-top: 6px;
    color: var(--text);
}

@media (max-width: 900px) {
    .hero__meta { grid-template-columns: 1fr; }
}

/* =========================================================
   Page hero
   ========================================================= */
.page-hero {
    padding: 34px 0 22px;
    border-bottom: 1px solid var(--stroke);
    background:
        radial-gradient(700px 320px at 20% 10%, rgba(225, 6, 0, .18), transparent 55%),
        linear-gradient(to bottom, rgba(255, 255, 255, .02), transparent);
}

.page-title {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(44px, 6vw, 74px);
    letter-spacing: .08em;
    margin-top: 10px;
}

.page-lead {
    margin-top: 10px;
    color: var(--muted);
    max-width: 70ch;
}

.page-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* =========================================================
   Sections / Layout
   ========================================================= */
.section {
    padding: 44px 0; 
}

.section--dark {
    background: linear-gradient(to bottom, rgba(255, 255, 255, .02), rgba(255, 255, 255, .01));
    border-top: 1px solid var(--stroke);
    border-bottom: 1px solid var(--stroke);
}

.section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.section__title {
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: .10em;
    font-size: 40px;
    line-height: 1;
}

.section__lead { 
    color: var(--muted); 
    margin-bottom: 3px; 
}

.section__actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.section__spacer { 
    height: 18px; 
}

/* Grid helpers */
.grid {
    display: grid;
    gap: 14px;
}

.grid--2 { 
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
}

.grid--3 { 
    grid-template-columns: repeat(3, minmax(0, 1fr)); 
}

.grid--4 { 
    grid-template-columns: repeat(4, minmax(0, 1fr)); 
}

@media (max-width: 980px) {
    .grid--4 { 
        grid-template-columns: repeat(2, minmax(0, 1fr)); 
    }
    
    .grid--3 { 
        grid-template-columns: repeat(2, minmax(0, 1fr)); 
    }
}

@media (max-width: 640px) {
    .grid--4, .grid--3, .grid--2 { 
        grid-template-columns: 1fr; 
    }
    
    .section__head { 
        flex-direction: column; 
        align-items: flex-start; 
    }
}

/* Split layout */
.split {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 14px;
    align-items: start;
}

@media (max-width: 920px) {
    .split { 
        grid-template-columns: 1fr; 
    }
}

/* =========================================================
   Cards / Media
   ========================================================= */
.card {
    background: rgba(18, 18, 22, .82);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}

.card__title {
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: .10em;
    font-size: 26px;
}

.card__text,
.card__meta {
    margin-top: 8px;
    color: var(--muted);
}

.card--feature .card__title { 
    font-size: 22px; 
}

.price {
    margin-top: 10px;
    color: #fff;
}

.price strong {
    color: #fff;
    border-bottom: 1px solid rgba(225, 6, 0, .55);
    padding-bottom: 1px;
}

.card--barber {
    padding: 0;
    overflow: hidden;
}

.card--barber .card__media {
    aspect-ratio: 4 / 3;
    background: #0a0a0b;
    border-bottom: 1px solid var(--stroke);
}

.card--barber img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05);
    transition: transform 0.3s ease; /* Плавный переход */
}

.card--barber img:hover {
    transform: scale(1.05); /* Увеличение при наведении */
}

.card--barber .card__body { 
    padding: 16px; 
}

.media {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--stroke);
    background: #0a0a0b;
}

.media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease; /* Плавный переход */
}

.media:hover img {
    transform: scale(1.05); /* Увеличение при наведении */
}

.media--tile {
    position: relative;
    aspect-ratio: 4 / 3;
}

.media__cap {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(0, 0, 0, .52);
    border: 1px solid rgba(255, 255, 255, .10);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .86);
}

.media__zoom {
    display: block;
    width: 100%;
    height: 100%;
}

.media__zoom:hover img {
    filter: brightness(1.05);
    transform: scale(1.01);
}

.media__zoom img {
    transition: transform .2s ease, filter .2s ease;
}

/* Video / embed */
.video {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: #000;
    margin-top: 12px;
}

.embed {
    margin-top: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
}

.embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Lightbox (:target) */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .86);
    display: none;
    place-items: center;
    padding: 18px;
    z-index: 2000;
}

.lightbox:target { 
    display: grid; 
}

.lightbox img {
    max-width: min(1100px, 92vw);
    max-height: 86vh;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 30px 120px rgba(0, 0, 0, .6);
}

.lightbox__close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .18);
    font-size: 26px;
    line-height: 1;
}

/* Lists / notes */
.list {
    margin-top: 10px;
    padding-left: 18px;
    list-style: disc;
    color: var(--muted);
}

.list li { 
    margin: 6px 0; 
}

.note {
    margin-top: 16px;
    border-left: 3px solid rgba(225, 6, 0, .55);
    padding: 10px 12px;
    background: rgba(225, 6, 0, .06);
    border-radius: var(--radius);
}

/* Reviews */
.card--review .stars {
    color: var(--accent2);
    letter-spacing: .12em;
    font-size: 18px;
    margin-bottom: 8px;
}

/* Contacts */
.contact-card {
    background: rgba(18, 18, 22, .82);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 16px;
}

.contact-card__title {
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: .12em;
    font-size: 28px;
}

.contact-list { 
    margin-top: 12px; 
    display: grid; 
    gap: 10px; 
}

.contact-label {
    display: block;
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted2);
}

.contact-value {
    display: inline-block;
    margin-top: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.contact-value:hover { 
    border-bottom-color: rgba(225, 6, 0, .85); 
}

.contact-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.map {
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    background: #0a0a0b;
}

/* Form */
.form { 
    padding: 16px; 
}

.form__grid {
    margin-top: 12px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    letter-spacing: .04em;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--stroke2);
    background: rgba(0, 0, 0, .22);
    color: var(--text);
    outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(225, 6, 0, .6);
    box-shadow: 0 0 0 3px rgba(225, 6, 0, .16);
}

.field--full { 
    grid-column: 1 / -1; 
}

.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    user-select: none;
}

.check input { 
    margin-top: 3px; 
}

.stack { 
    display: grid; 
    gap: 10px; 
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    border-top: 1px solid var(--stroke);
    padding: 34px 0 18px;
    background: radial-gradient(700px 320px at 20% 0%, rgba(225, 6, 0, .10), transparent 55%);
}

.footer-row {
    display: grid;
    grid-template-columns: 1.2fr .9fr .9fr;
    gap: 14px;
}

.brand--footer .brand__name {
    font-size: 16px; 
    opacity: .9; 
}

.footer-title {
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: .14em;
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-links {
    display: grid; 
    gap: 8px; 
    color: var(--muted); 
}

.footer-links a:hover { 
    color: #fff; 
}

.footer-actions {
    display: grid;
    gap: 10px; 
}

.footer-bottom {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--stroke);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap; 
}

@media (max-width: 900px) {
    .footer-row { 
        grid-template-columns: 1fr; 
    }
}

/* =========================================================
   Responsive Styles
   ========================================================= */
@media (max-width: 980px) {
    .header-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav__list {
        flex-direction: column;
        width: 100%;
    }
    .btn {
        width: 100%; /* Кнопки занимают 100% ширины для мобильных */
    }
}

@media (max-width: 640px) {
    .kicker {
        font-size: 10px; /* Уменьшаем размер шрифта для мобильных */
    }
    .hero__title {
        font-size: 24px; /* Меньший размер заголовка в герое */
    }
    .hero__subtitle {
        font-size: 16px; /* Меньший размер подзаголовка */
    }
    .card__title {
        font-size: 18px; /* Меньший размер заголовка карточек */
    }
    .card__text {
        font-size: 14px; /* Меньший текст в карточках */
    }
}