/* ===== ИМПОРТ ШРИФТОВ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text: #ffffff;
    --accent: rgba(255, 140, 0, 0.4);
}

html {
    min-height: 100%;
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-x: hidden;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #fff;
    background: #000;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.wrapper {
    flex: 0 1 auto;
    background: radial-gradient(circle at 92% 40%, rgba(255, 140, 0, 0.28) 0%, rgba(255, 140, 0, 0) 35%), #000;
    max-width: 100%;
}

.container {
    max-width: 1900px;
    width: 98%;
    margin: 50px auto;
    box-sizing: border-box;
}

/* ===== HEADER ===== */
header {
    padding: 50px 0;
}

header nav {
    float: right;
    width: 50%;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    gap: 80px;
    z-index: 2;
    float: right;
    position: relative;
}

header nav ul li {
    display: inline-block;
}

header nav ul li a {
    color: #fff;
    font-size: 18px;
    font-family: "Akt", sans-serif;
}

.logo {
    display: inline-block;
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
}

.subtitle {
    margin: 3px 0 0 8px;
    font-size: 14px;
    font-weight: 300;
    color: #cfcfcf;
    text-transform: lowercase;
}

/* ===== БРЕНДИРОВАНИЕ ФИЛИАЛА ===== */
.filial-detail__branding {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.filial-detail__branding > div {
    display: inline-flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 8px;
    width: max-content;
    padding-right: 20px;
}

.filial-detail__info .header ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.filial-detail__info .header ul li {
    display: inline-block;
}

.filial-detail__info .header ul li a {
    color: #fff;
    font-size: 16px;
}

/* ===== ССЫЛКИ - СОСТОЯНИЯ ===== */
a,
a:visited {
    color: #ffffff;
}

a:hover,
a:focus {
    color: #e6e6e6;
    outline: none;
    box-shadow: none;
}

/* ===== ДЕТАЛИ ФИЛИАЛА ===== */
.filial-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    max-width: 100vw;
    overflow-x: hidden;
}

.filial-detail__images {
    flex: 1 1 380px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.filial-detail__images img {
    width: 100%;
    max-height: 490px;
    object-fit: cover;
    border-radius: 16px;
}

.filial-detail__info {
    flex: 1 1 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    min-height: 300px;
    border: 2px solid #ff8c00;
    padding: 30px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.7);
    min-width: 0;
    max-width: 100%;
}

.filial-detail__info h1 {
    font-size: 48px;
    line-height: 1.1;
    text-align: center;
    margin: 0 0 20px 0;
}
.filial-detail__info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

/* ===== МАСТЕРА БАРБЕРЫ ===== */
.barber-images {
    display: flex;
    flex-wrap: wrap;
    gap: 100px;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 30px;
    margin-left: 20px;
}

.barber-item {
    flex: 0 1 320px;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 140, 0, 0.1);
}

.barber-item img {
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
    display: block;
    background: #000;
}

.barber-description-box {
    border-top: 2px solid #ff8c00;
    border-left: 2px solid #ff8c00;
    border-right: 2px solid #ff8c00;
    border-bottom: 2px solid #ff8c00;
    border-radius: 0 0 20px 20px;
    padding: 18px 16px;
    background: rgba(255, 140, 0, 0.08);
}

.barber-name {
    margin: 0 0 8px 0;
    color: #ffb347;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.barber-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    line-height: 1.6;
}

/* ===== REVEAL АНИМАЦИЯ ===== */
.reveal {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ИНФОРМАЦИОННЫЕ БЛОКИ ===== */
.detail-address {
    display: block;
    font-family: "Iosevka Charon", monospace;
    font-weight: 700;
    font-size: 30px;
    position: relative;
    padding-left: 100px;
    padding-bottom: 5px;
    margin: 0 0 150px 0;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.detail-phone {
    display: inline-block;
    font-family: "Iosevka Charon", monospace;
    font-weight: 700;
    font-size: 30px;
    position: relative;
    padding-left: 100px;
    padding-bottom: 5px;
    margin: 0 0 150px 0;
    white-space: nowrap;
    overflow-wrap: normal;
    color: #ff8c00 !important;
    max-width: 100%;
}

.detail-subtitle {
    color: #ffb347;
    font-size: 20px;
}

.detail-description,
.detail-extra {
    max-width: 720px;
}

/* ===== КНОПКА ЗАПИСИ ===== */
.btn-zapis {
    position: relative;
    overflow: hidden;
    background: #c48e5e;
    background: linear-gradient(90deg, rgba(196, 142, 94, 1) 0%, rgba(143, 88, 60, 1) 50%, rgba(145, 86, 64, 1) 50%, rgba(128, 80, 51, 1) 69%, rgba(143, 93, 33, 1) 100%);
    width: 100%;
    border-radius: 20px;
    max-width: 1200px;
    padding: 36px 60px;
    font-size: 22px;
    text-align: center;
    color: #fff;
    font-weight: 700;
    transition: color 0.35s ease, border-color 0.35s ease, transform 0.2s ease;
    z-index: 0;
}

.btn-zapis:hover {
    transform: scale(1.03);
}

.btn-zapis::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(143, 93, 33, 1) 0%, rgba(128, 80, 51, 1) 31%, rgba(145, 86, 64, 1) 50%, rgba(143, 88, 60, 1) 50%, rgba(196, 142, 94, 1) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.btn-zapis:hover::after {
    opacity: 1;
}

/* ===== FOOTER ===== */
footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    column-gap: 40px;
    row-gap: 8px;
    max-width: 1600px;
    width: 98%;
    margin: 20px auto 0;
}

.footer.container {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    max-width: none;
    margin: 0;
}

.footer-logo {
    font-family: "Akt", sans-serif;
    font-weight: 900;
    font-size: 30px;
    color: var(--text);
}

.footer-subtitle {
    font-family: "Akt", sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: var(--text);
}

.footer-info {
    display: inline-block;
    vertical-align: middle;
}

.footer-social {
    display: inline-block;
    vertical-align: middle;
    margin: 0 0 0 50px;
    padding: 0;
}

.footer-social li {
    list-style: none;
    margin-right: 10px;
    font-weight: 800;
    font-size: 15px;
}

.footer-social li a {
    transition: all 500ms ease;
}

.footer-social li a:hover {
    color: #ff9b2d;
}

.footer-social ul {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.footer-email,
.footer-time,
.footer-inn,
.footer-oferta,
.footer-nav {
    min-width: 0;
}

.footer-email {
    grid-column: 1;
    grid-row: 2;
    text-decoration: underline;
    text-decoration-color: var(--text);
    text-decoration-thickness: 1px;
    font-family: "Akt", sans-serif;
    font-weight: 500;
}

.footer-time {
    grid-column: 1;
    grid-row: 3;
    font-family: "Akt", sans-serif;
    font-weight: 300;
    font-size: 14px;
}

.footer-inn {
    grid-column: 1;
    grid-row: 4;
    margin-top: 20px;
}

.footer-inn span {
    display: block;
    opacity: 0.5;
    font-family: "Akt", sans-serif;
    font-weight: 300;
    margin-top: 5px;
    font-size: 12px;
}

.footer-oferta {
    grid-column: 2;
    grid-row: 4;
    margin-top: 20px;
    font-family: "Akt", sans-serif;
    font-weight: 300;
    font-size: 14px;
    opacity: 0.5;
    max-width: 360px;
}

.footer-nav {
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: start;
    opacity: 0.5;
}

.footer-nav a {
    font-family: "Akt", sans-serif;
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(16px, 3vw, 100px);
}

.footer-nav li {
    list-style: none;
}

/* ===== МЕДИА ЗАПРОСЫ ===== */
@media (max-width: 992px) {
    footer {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto auto auto auto;
    }
    .footer.container { grid-row: 1; }
    .footer-email     { grid-column: 1; grid-row: 2; }
    .footer-time      { grid-column: 1; grid-row: 3; }
    .footer-inn       { grid-column: 1; grid-row: 4; }
    .footer-oferta {
        grid-column: 1;
        grid-row: 5;
        max-width: 100%;
    }
    .footer-nav {
        grid-column: 1;
        grid-row: 6;
        align-self: start;
    }
    .footer-nav ul {
        flex-wrap: wrap;
        gap: 16px;
    }
}
/* Большие экраны - 900px и ниже */
@media (max-width: 900px) {
    .filial-detail {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 12px;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
    }

    .filial-detail__images,
    .filial-detail__info {
        width: 100%;
        align-self: stretch;
    }

    .filial-detail__images {
        display: grid;
        grid-template-rows: 1fr 1fr;
        gap: 12px;
    }

    .filial-detail__images img {
        height: 100%;
        min-height: 220px;
        object-fit: cover;
        border-radius: 12px;
    }

    .detail-address {
        font-size: 18px;
        padding-left: 34px;
        margin-bottom: 12px;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .detail-phone {
        font-size: 18px;
        padding-left: 34px;
        margin-bottom: 12px;
        white-space: nowrap;
        overflow-wrap: normal;
    }

    .barber-images {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 14px;
        margin-left: 0;
        justify-content: flex-start;
    }

    .barber-item {
        flex: 0 1 calc(50% - 7px);
        width: calc(50% - 7px);
    }

    .barber-item img {
        max-height: 220px;
    }
}

/* Средние экраны - 768px и ниже */
@media (max-width: 768px) {
    body {
        min-height: auto;
    }

    .wrapper {
        flex: 0 1 auto;
    }

    header nav {
        float: none;
        width: auto;
    }

    header nav ul {
        float: none;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: clamp(6px, 2vw, 20px);
    }

    header nav ul li a {
        font-size: clamp(11px, 3.2vw, 16px);
        white-space: nowrap;
    }
}

/* Макет для 760px и меньше */
@media (max-width: 760px) {
    .filial-detail {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        width: 100%;
    }

    .filial-detail__images,
    .filial-detail__info {
        width: 100%;
        min-width: 0;
    }

    .filial-detail__info {
        padding: 22px;
        min-height: auto;
    }

    .filial-detail__info h1 {
        font-size: 34px;
        margin: 0 0 16px 0;
        text-align: left;
    }

    .detail-address,
    .detail-phone {
        font-size: 18px;
        padding-left: 34px;
        margin-bottom: 12px;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .barber-images {
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin-left: 0;
    }

    .barber-item {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* Мобильные устройства - 600px и ниже */
@media (max-width: 600px) {
    html,
    body {
        font-size: 15px;
    }

    .container {
        width: 95%;
        margin: 12px auto;
    }

    header {
        padding: 16px 0;
    }

    header nav {
        float: none;
        width: auto;
    }

    .logo {
        font-size: 32px;
    }

    .subtitle {
        font-size: 12px;
    }

    .filial-detail {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        width: 100%;
    }

    .filial-detail__images,
    .filial-detail__info {
        width: 100%;
        align-self: stretch;
    }

    .filial-detail__images {
        display: grid;
        grid-template-rows: 1fr 1fr;
        gap: 10px;
    }

    .filial-detail__info {
        padding: 14px;
    }

    .filial-detail__images img {
        height: 100%;
        min-height: 200px;
        object-fit: cover;
        border-radius: 12px;
    }

    .filial-detail__info h1 {
        font-size: 26px;
        margin: 0 0 12px 0;
    }

    .detail-address,
    .detail-phone {
        font-size: 16px;
        padding-left: 30px;
        margin-bottom: 10px;
    }

    .barber-images {
        gap: 12px;
    }

    .barber-item {
        flex: 0 1 100%;
        width: 100%;
    }

    .barber-item img {
        max-height: 180px;
    }

    .barber-name {
        font-size: 15px;
    }

    .barber-subtitle {
        font-size: 13px;
    }

    .barber-description-box {
        padding: 12px 12px;
    }
}

@media (max-width: 520px) {
    .footer-nav ul {
        flex-wrap: wrap;
        gap: 8px 16px;
        justify-content: flex-start;
    }

    .footer-nav li {
        width: 100%;
        /* Каждый пункт меню на новой строке */
    }

    .footer-nav a {
        display: block;
        padding: 4px 0;
        word-break: break-word;
        /* Перенос длинных слов */
        white-space: normal;
        /* Разрешить перенос */
    }

    .footer-oferta {
        max-width: 100%;
        word-break: break-word;
        /* Перенос длинных слов */
        white-space: normal;
        /* Разрешить перенос */
        hyphens: auto;
        /* Автоматические переносы по слогам (для поддерживаемых браузеров) */
    }

    /* Если нужно, чтобы пункты меню были в колонку */
    .footer-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* Устройства без hover */
@media (hover: none) {
    a:hover,
    a:focus,
    .btn-zapis:hover,
    .footer-social li a:hover {
        color: inherit !important;
        background: none !important;
        border-color: transparent !important;
        transform: none !important;
        box-shadow: none !important;
        opacity: 1 !important;
    }

    .btn-zapis:hover::after {
        opacity: 0 !important;
    }
}
@media (hover: none) {
    .btn-zapis:hover {
        background: linear-gradient(90deg, rgba(196, 142, 94, 1) 0%, rgba(143, 88, 60, 1) 50%, rgba(145, 86, 64, 1) 50%, rgba(128, 80, 51, 1) 69%, rgba(143, 93, 33, 1) 100%) !important;
        transform: none !important;
    }
}

.wrapper {
    flex: 0 1 auto !important;
}
