/* ==========================================================================
   OS.9 Franchise — нові блоки лендінга (макет 08.2026)
   Усі класи з префіксом .fr- щоб не конфліктувати зі старим style.css
   ========================================================================== */

:root {
    --fr-purple: #46105e;
    --fr-purple-light: #8509dd;
    --fr-text: #212529;
    --fr-grad: linear-gradient(135deg, #2d015a 0%, #47177b 50%, #8509dd 100%);
}

.fr-section {
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.fr-section--gray {
    background: #f4f4f6;
}

.fr-section .container{
	position:relative;
}
.fr-section .container:before {
        content: '';
    width: 150px;
    height: 45px;
    background-image: url(../img/logo-back.png);
    background-size: cover;
    position: absolute;
    bottom: -50px;
    right: 15px;
    z-index: -1;
}

/* ---------- Заголовки ---------- */
.fr-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 30px;
    line-height: 1.32;
    text-transform: uppercase;
    text-align: center;
    color: var(--fr-purple);
    background: var(--fr-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 auto 45px;
    max-width: 1000px;
}

.fr-title--left {
    text-align: left;
    margin-left: 0;
}

/* ---------- Списки з маркерами ---------- */
.fr-list {
    max-width: 860px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.fr-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 16px;
    font-size: 19px;
    line-height: 1.5;
    color: var(--fr-text);
}

.fr-list li:before {
    content: '';
    position: absolute;
    left: 4px;
    top: 11px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--fr-purple-light);
}

.fr-list--tight li {
    margin-bottom: 12px;
}

/* ==========================================================================
   1. Послуги мережі + іконки
   ========================================================================== */
.fr-services .fr-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 46px;
    margin-top: 50px;
}

.fr-services .fr-icons img {
    width: 74px;
    height: 74px;
    display: block;
}

/* ==========================================================================
   2. Затребуваність бізнесу + цифри
   ========================================================================== */
.fr-demand__cols {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.fr-demand__cols .fr-list {
    margin: 0;
    flex: 1 1 55%;
}

.fr-figures {
    flex: 0 0 400px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
}

.fr-figure {
    text-align: center;
}

.fr-figure__label {
    font-style: italic;
    font-size: 14px;
    line-height: 1.35;
    color: #000;
    margin-bottom: 14px;
}

.fr-circle {
    border-radius: 50%;
    border: 22px solid #d1d2d4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--fr-text);
	position:relative;
}

.fr-circle:before{
	content: '';
    display: block;
    width: 26px;
    height: 38px;
    background: #fff;
    position: absolute;
    top: -28px;
    left: calc(50% - 12px);
}

.fr-figure--lg .fr-circle:before{
	top:inherit;
	bottom:-28px;
}

.fr-section--gray .fr-circle:before{background-color:#f4f4f6}
.fr-section--gray .fr-figure--lg .fr-circle{border-color:#ddd;}

.fr-circle span {
    font-weight: 400;
    font-style: italic;
    font-size: 13px;
    line-height: 1.2;
}
.fr-figure--sm{position:relative;z-index:2;}
.fr-figure--sm .fr-circle {
    width: 150px;
    height: 150px;
    font-size: 17px;
}

.fr-figure--lg {
    margin-left: -24px;
}

.fr-figure--lg .fr-circle {
    width: 210px;
    height: 210px;
    border-width: 26px;
    border-color:#ececec;
    font-size: 30px;
    position: relative;
    z-index: -1;
}

.fr-figure--lg .fr-circle span {
    font-size: 15px;
}

/* ==========================================================================
   3. Формати бізнесу
   ========================================================================== */
.fr-formats {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.fr-format {
    flex: 1 1 50%;
    background: #fff;
    border: 1px solid #e6e2ea;
    border-radius: 14px;
    padding: 34px 32px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 26px rgba(70, 16, 94, .06);
}

.fr-format h3 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 23px;
    color: var(--fr-purple);
    margin-bottom: 18px;
}

.fr-format p {
    font-size: 17px;
    line-height: 1.55;
    color: var(--fr-text);
    margin-bottom: 14px;
}

.fr-format p strong, .fr-format p b{
	font-weight:800;
}

.fr-format p em {
    font-style: italic;
}

.fr-format__accent {
    font-weight: 700;
}

.fr-format .fr-list {
    max-width: none;
    margin-bottom: 14px;
}

.fr-format .fr-list li {
    font-size: 16.5px;
    margin-bottom: 9px;
}

.fr-format__price {
    margin-top: auto;
    padding-top: 20px;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: var(--fr-purple);
}

/* ==========================================================================
   4. Карта філій
   ========================================================================== */
.fr-map__row {
    display: flex;
    gap: 40px;
}

.fr-map__text {
    font-size: 25px;
    line-height: 1.45;
    color: var(--fr-text);
    text-align: center;
    position: relative;
    z-index: 2;
}
.fr-map__text > div{
	position: absolute;
    width: 400px;
    bottom: 15%;
    left: 0;
}

.fr-map__text b {
    font-weight: 700;
    font-size: 29px;
}

.fr-map__img {
    flex: 1 1 auto;
    min-width: 0;
}

.fr-map__img img {
    display: block;
    width: 100%;
    height: auto;
}

/* ==========================================================================
   5. Алгоритм відкриття бізнесу
   ========================================================================== */
.fr-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 0;
}

.fr-step {
    position: relative;
    text-align: center;
    padding: 0 34px;
}

.fr-step img {
    width: 96px;
    height: 96px;
    margin: 0 auto 18px;
    display: block;
}

.fr-step p {
    font-size: 17px;
    line-height: 1.45;
    color: var(--fr-text);
}

/* стрілки між кроками */
.fr-step:not(:nth-child(3n)):after {
   content: '';
    position: absolute;
    top: 22%;
    right: -12px;
    width: 46px;
    height: 19px;
    background: url("/img/icons/step-arrow.png") no-repeat center / contain;
}

/* стрілка переходу з 1-го ряду на 2-й (тільки десктоп) */
.fr-steps__wrap {
    position: relative;
}

/* ==========================================================================
   6. Галерея магазину
   ========================================================================== */
/* Галерея магазину — сітка 6 × 6 */
/* Галерея магазину — сітка 6 × 6 */
.fr-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 1fr);
    aspect-ratio: 1280 / 580;
    gap: 4px;
}

.fr-gallery figure {
    margin: 0;
    overflow: hidden;
    background: #eee;
    min-width: 0;
    min-height: 0;
	 cursor: pointer;
}
.mfp-title{text-align:center;font-size:16px;}

.fr-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

.fr-gallery figure:hover img {
    transform: scale(1.05);
}

/* перший ряд */
.fr-gallery figure:nth-child(1) { grid-column: 1 / span 2; grid-row: 1 / span 3; }
.fr-gallery figure:nth-child(2) { grid-column: 3 / span 1; grid-row: 1 / span 3; }
.fr-gallery figure:nth-child(3) { grid-column: 4 / span 2; grid-row: 1 / span 2; }
.fr-gallery figure:nth-child(4) { grid-column: 6 / span 1; grid-row: 1 / span 3; }

/* другий ряд */
.fr-gallery figure:nth-child(5) { grid-column: 1 / span 2; grid-row: 4 / span 3; }
.fr-gallery figure:nth-child(6) { grid-column: 3 / span 1; grid-row: 4 / span 3; }
.fr-gallery figure:nth-child(7) { grid-column: 4 / span 2; grid-row: 3 / span 4; }
.fr-gallery figure:nth-child(8) { grid-column: 6 / span 1; grid-row: 4 / span 3; }

@media screen and (max-width: 950px) {
    .fr-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: none;
        grid-auto-rows: 190px;
        aspect-ratio: auto;
        gap: 6px;
    }

    .fr-gallery figure {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .fr-gallery figure:nth-child(1),
    .fr-gallery figure:nth-child(7) {
        grid-row: span 2 !important;
    }
}

@media screen and (max-width: 600px) {
    .fr-gallery {
        grid-auto-rows: 140px;
    }
}
/* ==========================================================================
   7. Плаваюча кнопка дзвінка
   ========================================================================== */
.fr-call-fab {
    position: fixed;
    right: 26px;
    bottom: 26px;
    width: 66px;
    height: 66px;
    z-index: 900;
    border-radius: 50%;
    box-shadow: 0 8px 26px rgba(70, 16, 94, .35);
    transition: transform .25s ease;
}

.fr-call-fab img {
    width: 100%;
    height: 100%;
    display: block;
}

.fr-call-fab:hover {
    transform: scale(1.07);
}

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media screen and (max-width: 1235px) {
    .fr-figures {
        flex: 0 0 340px;
    }

    .fr-step {
        padding: 0 18px;
    }

    .fr-step:not(:nth-child(3n)):after {
        right: -18px;
        width: 34px;
    }
	
	.fr-map__row {
        flex-direction: column;
    }

    .fr-map__text {
        flex: none;
        font-size: 21px;
    }

    .fr-map__text b {
        font-size: 24px;
    }
	.fr-map__text > div{position:static;width:100%;}
}

@media screen and (max-width: 950px) {
    .fr-section {
        padding: 50px 0;
    }
	.fr-section .container:before {
    width: 100px;
    height: 30px;
    bottom: -40px;
}

    .fr-title {
        font-size: 24px;
        margin-bottom: 32px;
    }

    .fr-demand__cols {
        flex-direction: column;
        gap: 40px;
    }

    .fr-figures {
        flex: none;
    }

    .fr-formats {
        flex-direction: column;
    }

    

    .fr-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 34px 0;
    }

    .fr-step:not(:nth-child(3n)):after {
        display: none;
    }

    .fr-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }
}

@media screen and (max-width: 600px) {
    .fr-list li {
        font-size: 16.5px;
        padding-left: 20px;
    }

    .fr-title {
        font-size: 20px;
        line-height: 1.3;
    }

    .fr-services .fr-icons {
        gap: 26px;
        margin-top: 34px;
		display: grid;
        grid-template-columns: repeat(3, 1fr);
		place-items: center;
    }

    .fr-services .fr-icons img {
        width: 54px;
        height: 54px;
    }

    .fr-figures {
        flex-direction: column;
        align-items: center;
        gap: 26px;
    }

    .fr-figure--lg {
        margin-left: 0;
    }

    .fr-figure--lg .fr-circle {
        z-index: auto;
    }

    .fr-format {
        padding: 26px 20px;
    }

    .fr-steps {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .fr-gallery {
        grid-auto-rows: 120px;
        gap: 8px;
    }

    .fr-call-fab {
        width: 56px;
        height: 56px;
        right: 14px;
        bottom: 14px;
    }
}



.fr-widget {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fr-widget__toggle {
    width: 66px;
    height: 66px;
    padding: 0;
    border: 0;
    background: none;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    flex: none;
    box-shadow: 0 8px 26px rgba(70, 16, 94, .35);
    transition: transform .3s ease, background .25s ease;
}

.fr-widget__toggle img { width: 100%; height: 100%; display: block; transition: opacity .2s ease; }
@media screen and (min-width: 601px) {.fr-widget__toggle:hover { transform: scale(1.07); }}

.fr-widget.is-open .fr-widget__toggle { background: #46105e; }
.fr-widget.is-open .fr-widget__toggle img { opacity: 0; }

.fr-widget__toggle:before,
.fr-widget__toggle:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 3px;
    margin: -1.5px 0 0 -13px;
    border-radius: 2px;
    background: #fff;
    opacity: 0;
    transition: opacity .25s ease, transform .3s ease;
}

.fr-widget.is-open .fr-widget__toggle:before { opacity: 1; transform: rotate(45deg); }
.fr-widget.is-open .fr-widget__toggle:after  { opacity: 1; transform: rotate(-45deg); }

.fr-widget__list { display: flex; align-items: center; gap: 12px; }

.fr-widget__item {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
    opacity: 0;
    visibility: hidden;
    transform: translateX(24px) scale(.5);
    transition: opacity .28s ease, transform .28s ease, visibility .28s;
}

.fr-widget__item img { display: block; }
.fr-widget__item--tg { background: #29a9eb; }
.fr-widget__item--call { background: linear-gradient(135deg, #4a1470 0%, #8509dd 100%); }

.fr-widget.is-open .fr-widget__item { opacity: 1; visibility: visible; transform: translateX(0) scale(1); }
.fr-widget.is-open .fr-widget__item--call { transition-delay: .05s; }
.fr-widget.is-open .fr-widget__item--tg   { transition-delay: .12s; }

@media screen and (max-width: 600px) {
    .fr-widget { right: 14px; bottom: 14px; gap: 10px; }
    .fr-widget__toggle { width: 56px; height: 56px; }
    .fr-widget__item { width: 46px; height: 46px; }
    .fr-widget__item img { max-width: 24px; height: auto; }
}

/* --- модалка віджета --- */
.fr-modal {
    position: relative;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 40px 34px 34px;
    background: #fff;
    border-radius: 26px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.fr-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #46105e;
    color: #fff;
    font-size: 22px;
        line-height: 34px;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
	    display: inline-flex;
    justify-content: center;
    align-items: center;
	    font-family: serif;
}

.fr-modal__close:hover { background: #8509dd; transform: rotate(90deg); }

.fr-modal__title {
    margin: 0 0 8px;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 27px;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    color: #46105e;
}

.fr-modal__subtitle {
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
    color: #3d3d3d;
}

.fr-modal__field {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 18px;
    background: #f1f1f4;
    border-radius: 26px;
}

.fr-modal__flag {
    display: flex;
    align-items: center;
    padding-right: 10px;
    border-right: 1px solid #c9c9d1;
}

.fr-modal__flag svg { border-radius: 2px; display: block; }

.fr-modal__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: 0;
    background: none;
    font-size: 17px;
    color: #1d1d1d;
    outline: none;
}

.fr-modal__input::placeholder { color: #8b8b95; }

.fr-modal__submit {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 15px 20px;
    border: 0;
    border-radius: 26px;
    background: #46105e;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .25s ease;
}

.fr-modal__submit:hover { background: #8509dd; }
.fr-modal__submit[disabled] { opacity: .6; cursor: default; }

.fr-modal__error { margin: 12px 0 0; font-size: 14px; text-align: center; color: #d33; }
.fr-modal__success { padding: 18px 0 10px; }
.fr-modal__success .fr-modal__subtitle { margin-bottom: 0; }

@media screen and (max-width: 480px) {
    .fr-modal { padding: 34px 20px 26px; border-radius: 20px; }
    .fr-modal__title { font-size: 22px; }
}