.mfi-page {
    min-height: 100svh;
    overflow: visible;
}

.mfi-page .mfp-container {
    width: min(1680px, calc(100% - 72px));
}

.mfi-hero {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    color: #fff;
    background: #171513;
    isolation: isolate;
}

.mfi-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--mfi-hero-image) center / cover no-repeat;
    transform: scale(1.02);
}

.mfi-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(16,20,24,0.56), rgba(255,255,255,0.12) 52%, rgba(16,20,24,0.56)),
        linear-gradient(0deg, rgba(16,20,24,0.56), rgba(255,255,255,0.12) 58%);
}

.mfi-hero-inner {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 126px 0 64px;
}

.mfi-hero h1 {
    max-width: 880px;
    margin: 0;
    font-family: var(--mfp-font-display);
    font-size: clamp(56px, 8vw, 112px);
    line-height: 0.88;
    font-weight: 600;
}

.mfi-hero p {
    max-width: 680px;
    margin: 20px 0 0;
    color: rgba(255,255,255,0.84);
    font-size: 18px;
    line-height: 1.58;
}

.mfi-hero--club {
    min-height: 100svh;
    padding: 118px 0 48px;
    color: #fff;
    background: #263238;
}

.mfi-hero--club::after {
    background:
        linear-gradient(90deg, rgba(18,22,24,0.58), rgba(18,22,24,0.18) 48%, rgba(18,22,24,0.36)),
        linear-gradient(0deg, rgba(18,22,24,0.62), rgba(18,22,24,0.10) 55%);
}

.mfi-hero--club .mfp-container {
    width: min(1680px, calc(100% - 72px));
}

.mfi-hero--club .mfi-hero-inner {
    min-height: calc(100svh - 166px);
    padding: 0;
}

.mfi-hero--club .mfc-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.mfi-hero--club .mfc-breadcrumbs a,
.mfi-hero--club .mfc-breadcrumbs span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 999px;
    background: rgba(255,255,255,0.17);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(12px);
}

.mfi-hero--club h1 {
    max-width: 880px;
    font-size: clamp(54px, 7vw, 106px);
    letter-spacing: 0.01em;
}

.mfi-hero--club p {
    color: rgba(255,255,255,0.82);
}

.mfi-section {
    padding: 64px 0;
}

.mfi-intro {
    max-width: 920px;
    margin: 0 auto 42px;
    text-align: center;
}

.mfi-intro h2 {
    margin: 0;
    color: var(--mfp-text);
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1;
    letter-spacing: 0;
}

.mfi-intro p {
    margin: 20px 0 0;
    color: var(--mfp-text-soft);
    font-size: 19px;
    line-height: 1.62;
}

.mfi-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.mfi-card,
.mfi-note,
.mfi-nav,
.mfi-faq details {
    border: 1px solid var(--mfp-border);
    border-radius: var(--mfp-radius);
    background: var(--mfp-card);
    box-shadow: var(--mfp-shadow-soft);
}

.mfi-card {
    padding: 28px;
}

.mfi-card + .mfi-card {
    margin-top: 16px;
}

.mfi-card h3 {
    margin: 0 0 18px;
    color: var(--mfp-text);
    font-size: 26px;
    line-height: 1.08;
}

.mfi-card ul {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mfi-card li {
    position: relative;
    padding-left: 28px;
    color: var(--mfp-text-soft);
    font-size: 17px;
    line-height: 1.62;
}

.mfi-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--mfp-accent-strong);
}

.mfi-note {
    margin-top: 18px;
    padding: 24px;
    color: var(--mfp-text);
    font-size: 18px;
    font-weight: 750;
    line-height: 1.52;
}

.mfi-side {
    position: sticky;
    top: 98px;
    display: grid;
    gap: 16px;
}

.mfi-nav {
    display: grid;
    gap: 6px;
    padding: 12px;
}

.mfi-nav a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--mfp-text-soft);
    text-decoration: none;
    font-size: 14px;
    font-weight: 750;
}

.mfi-nav a.is-active,
.mfi-nav a:hover {
    background: var(--mfp-bg-soft);
    color: var(--mfp-text);
}

.mfi-faq {
    margin-top: 52px;
}

.mfi-faq h2 {
    margin: 0 0 20px;
    color: var(--mfp-text);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1;
}

.mfi-faq-list {
    display: grid;
    gap: 10px;
}

.mfi-faq details {
    overflow: hidden;
}

.mfi-faq summary {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    color: var(--mfp-text);
    font-weight: 800;
    cursor: pointer;
}

.mfi-faq summary::-webkit-details-marker {
    display: none;
}

.mfi-faq summary::before {
    content: "+";
    color: var(--mfp-accent-strong);
    font-size: 22px;
    line-height: 1;
}

.mfi-faq details[open] summary::before {
    content: "-";
}

.mfi-faq details p {
    margin: 0;
    padding: 0 20px 20px 56px;
    color: var(--mfp-text-soft);
    font-size: 16px;
    line-height: 1.62;
}

.mfi-editorial-section {
    background: var(--mfp-bg);
}

.mfi-editorial {
    width: min(940px, 100%);
    margin: 0 auto;
    color: var(--mfp-text);
}

.mfi-editorial-lead,
.mfi-editorial section:not(.mfi-editorial-values),
.mfi-editorial-signature,
.mfi-contact-card,
.mfi-review-card {
    border: 1px solid var(--mfp-border);
    border-radius: var(--mfp-radius);
    background: var(--mfp-card);
    box-shadow: var(--mfp-shadow-soft);
}

.mfi-editorial-lead,
.mfi-editorial section:not(.mfi-editorial-values) {
    padding: clamp(24px, 4vw, 42px);
}

.mfi-editorial-lead {
    margin-bottom: 18px;
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 760;
    line-height: 1.35;
}

.mfi-editorial section + section {
    margin-top: 18px;
}

.mfi-editorial-values {
    padding: clamp(24px, 4vw, 42px) 0 0;
}

.mfi-editorial h2 {
    margin: 0 0 18px;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 0.98;
    letter-spacing: 0;
}

.mfi-editorial p {
    margin: 0;
    color: var(--mfp-text-soft);
    font-size: 18px;
    line-height: 1.7;
}

.mfi-editorial p + p,
.mfi-value-grid + p {
    margin-top: 16px;
}

.mfi-value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.mfi-value-card {
    display: grid;
    gap: 16px;
    align-content: start;
    min-height: 230px;
    padding: 26px;
    border: 1px solid var(--mfp-border);
    border-radius: var(--mfp-radius);
    background: var(--mfp-card);
    box-shadow: var(--mfp-shadow-soft);
}

.mfi-value-card .mfp-icon {
    margin-bottom: 4px;
}

.mfi-value-card h3 {
    margin: 0;
    color: var(--mfp-text);
    font-size: 22px;
    line-height: 1.05;
}

.mfi-value-card p {
    font-size: 15px;
    line-height: 1.55;
}

.mfi-editorial-signature {
    margin-top: 18px;
    padding: clamp(26px, 4vw, 44px);
    color: var(--mfp-text);
    font-family: var(--mfp-font-display);
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 650;
    line-height: 0.95;
    text-align: center;
}

.mfi-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
    gap: 24px;
    align-items: start;
}

.mfi-contact-side {
    display: grid;
    gap: 24px;
}

.mfi-contact-card {
    padding: clamp(24px, 3vw, 34px);
}

.mfi-contact-card h2,
.mfi-review-card h3 {
    margin: 0 0 22px;
    color: var(--mfp-text);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1;
}

.mfi-detail-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.mfi-detail-list div {
    display: grid;
    gap: 6px;
    padding: 16px 0;
    border-bottom: 1px solid var(--mfp-border);
}

.mfi-detail-list div:first-child {
    padding-top: 0;
}

.mfi-detail-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.mfi-detail-list dt {
    color: var(--mfp-text-muted);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mfi-detail-list dd {
    margin: 0;
    color: var(--mfp-text);
    font-size: 17px;
    font-weight: 750;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.mfi-detail-list a {
    color: inherit;
    text-decoration: none;
}

.mfi-contact-actions {
    display: grid;
    gap: 12px;
}

.mfi-social-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    width: 100%;
    padding: 0 16px 0 20px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-size: 15px;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(24,28,32,0.16);
    transition:
        transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.28s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.mfi-social-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 20px 42px rgba(24,28,32,0.2);
}

.mfi-social-button--vk {
    background: var(--mfp-social-vk);
}

.mfi-social-button--telegram {
    background: var(--mfp-social-telegram);
}

.mfi-social-button--max {
    background: var(--mfp-social-max);
}

.mfi-social-button--whatsapp {
    background: var(--mfp-social-whatsapp);
}

.mfi-social-button-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    color: #fff;
    flex: 0 0 auto;
}

.mfi-social-button-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.mfi-review-city + .mfi-review-city {
    margin-top: 56px;
}

.mfi-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.mfi-review-card {
    min-width: 0;
    padding: clamp(18px, 2vw, 24px);
}

.mfi-yandex-widget {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--mfp-border);
    border-radius: 8px;
    background: var(--mfp-bg-soft);
}

.mfi-yandex-widget a {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 8px;
    max-height: 14px;
    overflow: hidden;
    color: var(--mfp-text-muted);
    font-size: 10px;
    text-align: center;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mfi-review-frame {
    display: block;
    width: 100%;
    height: min(900px, 78svh);
    min-height: 620px;
    border: 0;
    border-radius: 8px;
    background: var(--mfp-bg-soft);
}

.mfi-salons-section {
    padding-top: 72px;
}

.mfi-salon-list {
    display: grid;
    gap: 26px;
}

.mfi-salon-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.38fr) minmax(320px, 0.42fr) minmax(360px, 0.58fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--mfp-border);
    border-radius: var(--mfp-radius-lg);
    background: var(--mfp-card);
    box-shadow: var(--mfp-shadow-soft);
}

.mfi-salon-media {
    min-height: 520px;
    background: var(--mfp-bg-soft);
}

.mfi-salon-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mfi-salon-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 34px;
}

.mfi-salon-body h2 {
    margin: 0;
    color: var(--mfp-text);
    font-size: clamp(32px, 3.8vw, 52px);
    line-height: 0.96;
}

.mfi-salon-contacts {
    display: grid;
    gap: 14px;
    margin: 26px 0 0;
}

.mfi-salon-contacts div {
    display: grid;
    gap: 4px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--mfp-border);
}

.mfi-salon-contacts dt {
    color: var(--mfp-text-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.mfi-salon-contacts dd {
    margin: 0;
    color: var(--mfp-text);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.45;
}

.mfi-salon-contacts a {
    color: inherit;
    text-decoration: none;
}

.mfi-salon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.mfi-salon-map {
    min-height: 520px;
    background: var(--mfp-bg-soft);
}

.mfi-salon-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 520px;
    border: 0;
}

.mfi-generic-section {
    background: var(--mfp-bg);
}

.mfi-generic-card {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid var(--mfp-border);
    border-radius: var(--mfp-radius);
    background: var(--mfp-card);
    box-shadow: var(--mfp-shadow-soft);
    color: var(--mfp-text-soft);
    font-size: 17px;
    line-height: 1.72;
}

.mfi-generic-card h1,
.mfi-generic-card h2,
.mfi-generic-card h3,
.mfi-generic-card h4 {
    margin: 1.45em 0 0.55em;
    color: var(--mfp-text);
    line-height: 1.08;
}

.mfi-generic-card h1:first-child,
.mfi-generic-card h2:first-child,
.mfi-generic-card h3:first-child,
.mfi-generic-card h4:first-child {
    margin-top: 0;
}

.mfi-generic-card h1 {
    font-size: clamp(36px, 5vw, 64px);
}

.mfi-generic-card h2 {
    font-size: clamp(28px, 3vw, 42px);
}

.mfi-generic-card h3 {
    font-size: 24px;
}

.mfi-generic-card p,
.mfi-generic-card ul,
.mfi-generic-card ol {
    margin: 0 0 1em;
}

.mfi-generic-card a {
    color: var(--mfp-accent-strong);
}

.mfi-generic-card table {
    width: 100%;
    border-collapse: collapse;
}

.mfi-generic-card th,
.mfi-generic-card td {
    padding: 12px;
    border: 1px solid var(--mfp-border);
    vertical-align: top;
}

@media (min-width: 1920px) {
    .mfi-page .mfp-container,
    .mfi-hero--club .mfp-container {
        width: min(1780px, calc(100% - 96px));
    }
}

@media (max-width: 980px) {
    .mfi-page .mfp-container {
        width: min(100% - 28px, var(--mfp-container));
    }

    .mfi-hero,
    .mfi-hero-inner {
        min-height: 100svh;
    }

    .mfi-layout,
    .mfi-contact-layout,
    .mfi-review-grid,
    .mfi-value-grid,
    .mfi-salon-card {
        grid-template-columns: 1fr;
    }

    .mfi-value-card {
        min-height: 0;
    }

    .mfi-salon-media,
    .mfi-salon-map,
    .mfi-salon-map iframe {
        min-height: 360px;
    }

    .mfi-side {
        position: static;
    }
}

@media (max-width: 640px) {
    .mfi-hero-inner {
        padding: 96px 0 34px;
    }

    .mfi-hero--club {
        padding: 96px 0 28px;
    }

    .mfi-hero--club .mfp-container {
        width: min(100% - 28px, var(--mfp-container, 1240px));
    }

    .mfi-hero--club .mfi-hero-inner {
        min-height: calc(100svh - 124px);
        padding: 0;
    }

    .mfi-hero--club h1 {
        font-size: clamp(42px, 15vw, 60px);
    }

    .mfi-hero--club p {
        font-size: 16px;
    }

    .mfi-section {
        padding: 44px 0;
    }

    .mfi-intro {
        text-align: left;
    }

    .mfi-card {
        padding: 22px;
    }

    .mfi-salon-card {
        border-radius: var(--mfp-radius);
    }

    .mfi-salon-body {
        padding: 24px;
    }

    .mfi-editorial p {
        font-size: 16px;
    }

    .mfi-review-city + .mfi-review-city {
        margin-top: 38px;
    }

    .mfi-review-frame {
        height: 680px;
        min-height: 560px;
    }

    .mfi-salon-media,
    .mfi-salon-map,
    .mfi-salon-map iframe {
        min-height: 320px;
    }
}
