/* ==========================================================
   STYLE-F4L.CSS — FRAME4LIFE
   Единый файл стилей для всех страниц сайта
   Версия: 3.0.0
   ========================================================== */


/* ==========================================================
   1. СБРОС И БАЗА
   ========================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
    color: #333;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

html {
    scroll-behavior: smooth;
}

/* ==========================================================
   2. ОБЩИЕ ОБЁРТКИ И КОНТЕЙНЕРЫ
   ========================================================== */

.f4l-page-wrapper {
    background-color: #ffffff !important;
    color: #333333 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.f4l-page-wrapper,
.f4l-page-wrapper * {
    box-sizing: border-box !important;
}

.f4l-page-wrapper a {
    text-decoration: none !important;
    color: inherit !important;
}

.f4l-photographer-page-wrapper {
    background-color: #ffffff !important;
    color: #333333 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.f4l-photographer-page-wrapper,
.f4l-photographer-page-wrapper * {
    box-sizing: border-box !important;
}

.f4l-photographer-page-wrapper a {
    text-decoration: none !important;
    color: inherit !important;
}

/* Стандартный контейнер 1200px */
.f4l-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Контейнер страницы фотографа */
.f4l-pp-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    width: 100% !important;
}

/* Текстовый контейнер (How it Works, legal pages) */
.f4l-text-container {
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    width: 100% !important;
}


/* ==========================================================
   3. СБРОС СТИЛЕЙ СПИСКОВ WORDPRESS
   ========================================================== */

.f4l-page-wrapper ul,
.f4l-page-wrapper ol {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.f4l-page-wrapper ul,
.f4l-page-wrapper ol,
.f4l-page-wrapper li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.f4l-page-wrapper ul li {
    font-size: 14px !important;
    margin-bottom: 6px !important;
    color: #333 !important;
    list-style: none !important;
}

.f4l-page-wrapper ul li::before {
    display: none !important;
}

.f4l-page-wrapper ul li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
    display: inline-block;
}

.f4l-page-wrapper ul li a:hover {
    color: #3b768a;
    text-decoration: underline;
}


/* ==========================================================
   4. ВЕРХНЯЯ ТЁМНАЯ ПОЛОСА (Удалена для прижатия шапки)
   ========================================================== */
.f4l-top-bar {
    display: none !important;
}

/* ==========================================================
   5. ШАПКА САЙТА (Прижата к верху, линия по ширине контента)
   ========================================================== */
.f4l-header {
    background-color: #ffffff !important;
    padding: 0 !important; /* Убираем padding у самого хедера, переносим внутрь */
    border-bottom: none !important; /* Убираем длинную линию на всю ширину экрана */
}

.f4l-header-flex {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 0 !important; /* Возвращаем отступы сюда */
    border-bottom: 1px solid #eeeeee !important; /* Добавляем линию сюда (она будет ограничена шириной 1200px) */
}

/* ==========================================================
   6. НАВИГАЦИЯ
   ========================================================== */

.f4l-nav {
    display: flex !important;
    gap: 40px !important;
    font-size: 14px !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
}

.f4l-nav a {
    color: #333333 !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.f4l-nav a:hover {
    color: #555555 !important;
}

.f4l-nav a.f4l-nav-active {
    font-weight: bold !important;
    color: #000000 !important;
}


/* ==========================================================
   7. ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКОВ
   ========================================================== */

.f4l-lang-dropdown {
    position: relative !important;
    display: inline-block !important;
}

/* Глобальный фикс размера флагов */
.f4l-lang-dropdown img,
.f4l-lang-btn img,
.f4l-lang-menu img {
    width: 18px !important;
    max-width: 18px !important;
    height: auto !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

/* Кнопка переключателя */
.f4l-lang-btn {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    border: 1px solid #ccc !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    cursor: pointer !important;
    background: #fff !important;
    color: #000000 !important;
    font-weight: normal !important;
    text-decoration: none !important;
    user-select: none !important;
}

.f4l-lang-btn:hover {
    background: #f5f5f5 !important;
}

/* Выпадающее меню языков */
.f4l-lang-menu {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 5px) !important;
    right: 0 !important;
    background-color: #ffffff !important;
    min-width: 120px !important;
    min-height: 40px !important;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15) !important;
    z-index: 10000 !important;
    border-radius: 4px !important;
    overflow: visible !important;
    border: 1px solid #e0e0e0 !important;
    padding: 4px 0 !important;
}

.f4l-lang-menu.f4l-show {
    display: block !important;
}

/* Ссылки внутри меню языков — созданные JS динамически */
.f4l-lang-menu a,
.f4l-lang-menu a:link,
.f4l-lang-menu a:visited,
.f4l-lang-menu a:hover,
.f4l-lang-menu a:active {
    color: #000000 !important;
    padding: 10px 15px !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    font-weight: normal !important;
    transition: background 0.15s !important;
    background-color: transparent !important;
    width: 100% !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.f4l-lang-menu a:hover {
    background-color: #f1f1f1 !important;
    color: #000 !important;
}

.f4l-lang-menu a.f4l-lang-active {
    background-color: #f0f0f0 !important;
    font-weight: bold !important;
}

/* hreflang ссылки для SEO — скрытые, только для роботов */
.f4l-hreflang-links {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}


/* ==========================================================
   8. ФУТЕР
   ========================================================== */

.f4l-custom-footer {
    background-color: #2f343a !important; /* Темный цвет из фото */
    padding: 40px 0 !important;
    width: 100% !important;
    margin-top: 60px !important;
}

.f4l-footer-content {
    display: flex !important;
    flex-direction: row !important; /* В один ряд */
    justify-content: center !important; /* По центру горизонтально */
    align-items: center !important; /* По центру вертикально */
    flex-wrap: wrap !important; /* Если экран узкий, ссылки перенесутся */
    gap: 30px !important; /* Расстояние между ссылками */
    padding: 0 !important;
}

.f4l-footer-content a,
.f4l-footer-content span {
    color: #e0e0e0 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
    font-weight: normal !important;
}

.f4l-footer-content a:hover {
    color: #ffffff !important;
}

.f4l-footer-content a.f4l-footer-active {
    color: #ffffff !important;
}

/* Защита цвета ссылок футера от других стилей Elementor */
.f4l-page-wrapper .f4l-custom-footer a,
.f4l-photographer-page-wrapper .f4l-custom-footer a {
    color: #e0e0e0 !important;
}

.f4l-page-wrapper .f4l-footer-content a:hover,
.f4l-photographer-page-wrapper .f4l-footer-content a:hover {
    color: #ffffff !important;
}


/* ==========================================================
   КНОПКА "НАВЕРХ" (Back to Top)
   ========================================================== */
.f4l-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #5a6573; /* В цвет ваших кнопок */
    color: #ffffff;
    border: none;
    border-radius: 50%; /* Круглая кнопка */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;          /* Скрыта по умолчанию */
    visibility: hidden;  /* Скрыта по умолчанию */
    transform: translateY(20px); /* Смещена вниз для анимации появления */
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}

/* Класс для показа кнопки (добавляется через JS) */
.f4l-back-to-top.f4l-show-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Возвращаем на место */
}

.f4l-back-to-top:hover {
    background-color: #434b56; /* Чуть темнее при наведении */
}

/* Иконка внутри кнопки */
.f4l-back-to-top svg {
    width: 24px;
    height: 24px;
}




/* ==========================================================
   ОТСТУПЫ ДЛЯ ДЛИННЫХ SEO ТЕКСТОВ
   ========================================================== */
.f4l-seo-paragraphs p {
    margin-bottom: 20px !important;
}

.f4l-seo-paragraphs p:last-child {
    margin-bottom: 0 !important;
}





/* Адаптивность для мобильных телефонов (уменьшаем размер и отступы) */
@media (max-width: 600px) {
    .f4l-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    .f4l-back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* ==========================================================
   9. ГЛАВНАЯ СТРАНИЦА
   ========================================================== */

/* Hero баннер */
.f4l-hero {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    display: block;
    line-height: 0;
}

/* Общая картинка hero */
.f4l-hero-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Скрываем мобильный баннер по умолчанию (на десктопе) */
.f4l-hero-img-mobile {
    display: none;
}

/* Логотип поверх hero */
.f4l-hero-logo {
    position: absolute;
    top: 5%;
    left: 5%;
    width: clamp(90px, 12vw, 160px);
    height: auto;
    z-index: 3;
}

/* Цитата поверх hero */
.f4l-hero-quote {
    position: absolute;
    top: 10%;
    right: 5%;
    text-align: right;
    font-style: italic;
    font-weight: 600;
    font-size: clamp(14px, 2vw, 26px);
    color: #222;
    text-shadow: 0px 0px 15px rgba(255,255,255,1),
                 0px 0px 5px rgba(255,255,255,0.8);
    line-height: 1.4;
    z-index: 3;
}

.f4l-hero-quote span {
    display: block;
}

/* Поисковый блок поверх hero */
.f4l-search-box-container {
    position: absolute;
    bottom: 10%;
    left: 5%;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 12px;
    width: 36%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    line-height: 1.5;
    z-index: 3;
}

.f4l-search-box-container h2 {
    font-size: clamp(14px, 1.6vw, 22px);
    margin-bottom: 16px;
    line-height: 1.3;
    font-weight: bold;
    color: #222;
}

/* Поиск внутри hero */
.f4l-hero-search-wrapper {
    display: flex;
    align-items: stretch;
}

.f4l-hero-search-field {
    display: flex;
    align-items: center;
    border: 1px solid #777;
    border-right: none;
    border-radius: 5px 0 0 5px;
    padding: 0 12px;
    background: #fff;
    flex: 1;
    min-width: 0;
    min-height: 44px;
}

.f4l-hero-search-field input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    background: transparent;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
    padding: 12px 0;
    margin: 0;
    line-height: 1.2;
    -webkit-appearance: none;
    appearance: none;
}

.f4l-hero-search-field input::placeholder {
    color: #aaa;
}

.f4l-hero-search-btn {
    padding: 12px 16px;
    margin: 0;
    line-height: 1.2;
    -webkit-appearance: none;
    appearance: none;
    background: #111;
    color: #fff;
    border: 1px solid #111;
    border-radius: 0 5px 5px 0;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.f4l-hero-search-btn:hover {
    background: #333;
    border-color: #333;
}

/* Сообщение об ошибке поиска hero */
.f4l-hero-search-message {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    display: none;
}

.f4l-hero-search-message a {
    color: #3b768a;
    text-decoration: underline;
}

.f4l-hero-search-message.f4l-visible {
    display: block;
}

/* Популярные города */
.f4l-popular-cities {
    padding: 60px 0;
    text-align: center;
    width: 100%;
}

.f4l-popular-cities .f4l-container {
    text-align: center;
}

.f4l-city-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.f4l-city-item {
    background-color: #f4f4f6;
    padding: 18px 10px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    color: #000;
    transition: background-color 0.2s;
    display: block;
    text-decoration: none;
}

.f4l-city-item:hover {
    background-color: #e0e0e0;
}

/* Кнопка "Смотреть все города" (Жесткая защита от Elementor) */
a.f4l-view-all,
div.f4l-page-wrapper a.f4l-view-all,
div.f4l-page-wrapper a.f4l-view-all:visited {
    display: inline-block !important;
    background-color: #5a6573 !important; /* Светлее по умолчанию */
    color: #ffffff !important;           /* ЖЕЛЕЗОБЕТОННО белый текст */
    font-size: 18px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    padding: 15px 40px !important;
    border-radius: 4px !important;
    margin-top: 10px !important;
    transition: background-color 0.3s ease, transform 0.1s ease !important;
    border: none !important;
    line-height: normal !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

a.f4l-view-all:hover,
div.f4l-page-wrapper a.f4l-view-all:hover {
    background-color: #434b56 !important; /* Темнее при наведении */
    color: #ffffff !important;           /* Остается белым */
    text-decoration: none !important;
}

a.f4l-view-all:active,
div.f4l-page-wrapper a.f4l-view-all:active {
    transform: scale(0.98) !important;
}


/* Информационные блоки главной */
.f4l-info-section {
    padding: 40px 0 80px;
    width: 100%;
}

.f4l-info-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.f4l-info-row.f4l-reverse {
    flex-direction: row-reverse;
}

/* Размер иконок по умолчанию (десктоп) */
.f4l-info-icon {
    width: 160px;
    flex-shrink: 0;
}

.f4l-info-text {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}


/* ==========================================================
   10. СТРАНИЦА DESTINATIONS
   ========================================================== */

/* Вводный текст */
.f4l-intro {
    padding: 40px 20px 30px;
}

.f4l-intro h1 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: normal;
    color: #222;
}

.f4l-intro p {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

.f4l-highlight {
    color: #3b768a;
    font-weight: normal;
}

/* Поиск на странице destinations */
.f4l-search-section {
    padding: 0 20px 50px;
}

.f4l-search-section h2 {
    font-size: 28px;
    font-weight: normal;
    margin-bottom: 16px;
}

.f4l-search-wrapper {
    display: flex;
    align-items: stretch;
    max-width: 560px;
}

.f4l-search-box {
    display: flex;
    align-items: center;
    border: 1px solid #777;
    border-right: none;
    border-radius: 5px 0 0 5px;
    padding: 0 15px;
    background: #fff;
    flex: 1;
    min-width: 0;
    min-height: 48px;
}

.f4l-search-box svg {
    width: 18px;
    height: 18px;
    opacity: 0.55;
    margin-right: 12px;
    flex-shrink: 0;
    fill: none;
    stroke: #333;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

.f4l-search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 15px;
    background: transparent;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
    padding: 14px 0;
    margin: 0;
    line-height: 1.2;
    -webkit-appearance: none;
    appearance: none;
}

.f4l-search-box input::placeholder {
    color: #aaa;
}

.f4l-search-btn {
    padding: 14px 22px;
    margin: 0;
    line-height: 1.2;
    -webkit-appearance: none;
    appearance: none;
    background: #111;
    color: #fff;
    border: 1px solid #111;
    border-radius: 0 5px 5px 0;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.f4l-search-btn:hover {
    background: #333;
    border-color: #333;
}

/* Сообщение об ошибке поиска */
.f4l-search-message {
    margin-top: 14px;
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    display: none;
    max-width: 560px;
}

.f4l-search-message a {
    color: #3b768a;
    text-decoration: underline;
}

.f4l-search-message a:hover {
    color: #2a5a6b;
}

.f4l-search-message.f4l-visible {
    display: block;
}

/* Секции регионов */
.f4l-region-section {
    margin-bottom: 60px;
    padding: 0 20px;
}

.f4l-region-title {
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    color: #111;
}

/* Сетка стран (5 колонок) */
.f4l-grid-5 {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px !important;
    align-items: start;
}

.f4l-country-block h4 {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #000;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* США и Канада — на всю ширину */
.f4l-span-all {
    grid-column: 1 / -1 !important;
    margin-bottom: 20px;
}

.f4l-us-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0 20px;
    margin-top: 10px;
}

.f4l-canada-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0 20px;
    margin-top: 10px;
}


/* ==========================================================
   11. СТРАНИЦА "HOW IT WORKS" И ТЕКСТОВЫЕ СТРАНИЦЫ
   ========================================================== */

.f4l-page-title {
    font-size: 32px !important;
    font-weight: bold !important;
    color: #333 !important;
    margin-top: 40px !important;
    margin-bottom: 15px !important;
}

.f4l-subtitle {
    font-size: 15px !important;
    color: #333 !important;
    margin-bottom: 40px !important;
}

.f4l-step-title {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #4b6577 !important;
    margin-top: 35px !important;
    margin-bottom: 15px !important;
}

/* Текстовый блок с отступом */
.f4l-text-block {
    padding-left: 120px !important;
    margin-bottom: 10px !important;
}

.f4l-text-block p {
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #444 !important;
    margin-bottom: 16px !important;
    font-style: normal !important;
}

.f4l-text-block p strong {
    font-weight: bold !important;
    color: #222 !important;
}

.f4l-text-block a {
    color: #111 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

.f4l-text-block a:hover {
    opacity: 0.65 !important;
}

/* Список условий */
.f4l-cancel-list {
    margin-bottom: 20px !important;
    padding-left: 20px !important;
    list-style: none !important;
}

.f4l-cancel-list li {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #444 !important;
    margin-bottom: 15px !important;
    font-style: italic !important;
    position: relative !important;
    list-style: none !important;
}

.f4l-cancel-list li::before {
    content: "-" !important;
    position: absolute !important;
    left: -20px !important;
    color: #444 !important;
    font-style: normal !important;
}

.f4l-cancel-list li strong {
    font-weight: bold !important;
    color: #222 !important;
}

/* Закрывающий текст */
.f4l-closing-text {
    font-size: 15px !important;
    font-weight: bold !important;
    color: #333 !important;
    margin-top: 30px !important;
    margin-bottom: 30px !important;
    padding-left: 120px !important;
}

/* ==========================================================
   11. ОБНОВЛЕННАЯ КНОПКА ДЕЙСТВИЯ (Защита как на Home)
   ========================================================== */

a.f4l-action-btn,
div.f4l-page-wrapper a.f4l-action-btn,
div.f4l-page-wrapper a.f4l-action-btn:visited,
div.f4l-photographer-page-wrapper a.f4l-action-btn,
div.f4l-photographer-page-wrapper a.f4l-action-btn:visited {
    display: inline-block !important;
    background-color: #5a6573 !important; /* Светло-серый из Home */
    color: #ffffff !important;           /* Чисто белый текст */
    font-size: 18px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    padding: 15px 40px !important;
    border-radius: 4px !important;
    transition: background-color 0.3s ease, transform 0.1s ease !important;
    border: none !important;
    line-height: normal !important;
    text-shadow: none !important;
    box-shadow: none !important;
    text-align: center !important;
}

a.f4l-action-btn:hover,
div.f4l-page-wrapper a.f4l-action-btn:hover,
div.f4l-photographer-page-wrapper a.f4l-action-btn:hover {
    background-color: #434b56 !important; /* Темно-серый при наведении */
    color: #ffffff !important;
    text-decoration: none !important;
}

a.f4l-action-btn:active,
div.f4l-page-wrapper a.f4l-action-btn:active,
div.f4l-photographer-page-wrapper a.f4l-action-btn:active {
    transform: scale(0.98) !important;
}


/* ==========================================================
   СПЕЦИАЛЬНАЯ ВЕРСТКА ДЛЯ СТРАНИЦЫ HOW IT WORKS (ОБТЕКАНИЕ)
   ========================================================== */

/* Плавающее видео (уходит вправо, текст обтекает его слева и снизу) */
.f4l-hiw-video-float {
    float: right;
    width: 45%; 
    max-width: 450px; /* Ограничиваем максимальную ширину видео */
    margin: 5px 0 20px 40px; /* Отступы: снизу 20px, слева 40px (чтобы текст не прилипал) */
}

/* Убираем отступ у первого заголовка, чтобы он встал вровень с верхом видео */
.f4l-step-title.f4l-step-first {
    margin-top: 0 !important; 
}

/* Контейнер картинки-превью */
.f4l-video-trigger {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.f4l-video-trigger:hover {
    transform: scale(1.02);
}

.f4l-hiw-preview-img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Иконка PLAY поверх картинки */
.f4l-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: background 0.3s;
}

.f4l-video-trigger:hover .f4l-play-overlay {
    background: rgba(255, 255, 255, 1);
}

.f4l-play-overlay::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #333;
    margin-left: 6px; 
}

/* Центрирование кнопки внизу */
.f4l-hiw-centered-btn {
    text-align: center !important;
    padding-left: 0 !important; 
    margin-top: 50px !important;
}

/* Стили для всплывающего окна с видео */
.f4l-video-modal-content {
    padding: 0 !important;
    background: transparent !important;
    max-width: 900px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5) !important;
    position: relative !important;
}

.f4l-video-modal-content video {
    width: 100%;
    display: block;
    border-radius: 8px;
    outline: none;
}

.f4l-video-modal-content .f4l-modal-close {
    position: absolute !important;
    right: -40px !important;
    top: -40px !important;
    color: #ffffff !important;
    font-size: 45px !important;
    font-weight: normal !important;
    cursor: pointer !important;
    z-index: 10 !important;
    line-height: 1 !important;
}

.f4l-video-modal-content .f4l-modal-close:hover {
    color: #aaaaaa !important;
}


/* ==========================================================
   12. СТРАНИЦА ЦЕН И ПАКЕТЫ (city price page)
   ========================================================== */

/* Заголовок */
.f4l-page-title-center {
    text-align: center !important;
    font-size: 36px !important;
    font-weight: bold !important;
    color: #333333 !important;
    margin-top: 30px !important;
    margin-bottom: 20px !important;
}

/* Сетка карточек пакетов */
.f4l-pricing-wrapper {
    width: 75% !important;
    margin: 0 auto !important;
}

.f4l-pricing-grid {
    display: flex !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
    align-items: stretch !important;
}

.f4l-pricing-card {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    background-color: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Шапка карточки */
.f4l-card-header {
    background-color: #6c7586 !important;
    color: #ffffff !important;
    text-align: center !important;
    padding: 12px 5px !important;
    font-size: 15px !important;
    font-weight: bold !important;
}

/* Тело карточки */
.f4l-card-body {
    padding: 20px 15px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    flex-grow: 1 !important;
}

/* Цена */
.f4l-price {
    font-size: 26px !important;
    font-weight: bold !important;
    color: #333333 !important;
    margin-bottom: 15px !important;
    text-align: center !important;
}

/* Список включённых услуг */
.f4l-features-list {
    width: 100% !important;
}

.f4l-feature-item {
    font-size: 12px !important;
    color: #111111 !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
    text-align: left !important;
}

.f4l-feature-item strong {
    font-weight: bold !important;
}

/* Кнопка "Read more" (Заменяет старую картинку) */
.f4l-learn-more-btn {
    margin-top: auto !important;
    display: flex !important;
    justify-content: center !important;
    padding-top: 20px !important;
    width: 100% !important;
}

.f4l-btn-read-more {
    background-color: #166088 !important; /* Цвет как у кнопки "Отправить запрос" */
    color: #ffffff !important;
    padding: 12px 20px !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    font-size: 14px !important;
    text-align: center !important;
    display: inline-block !important;
    transition: background 0.2s, transform 0.1s !important;
    text-decoration: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    line-height: normal !important;
}

.f4l-btn-read-more:hover {
    background-color: #0e4a6a !important; /* Темнее при наведении */
    transform: translateY(-2px) !important;
    color: #ffffff !important;
}

/* Всплывающие окна (Modals) */
.f4l-modal {
    display: none !important;
    position: fixed !important;
    z-index: 999999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    align-items: center !important;
    justify-content: center !important;
}

.f4l-modal.f4l-active {
    display: flex !important;
}

.f4l-modal-content {
    background-color: #fff !important;
    padding: 40px !important;
    border-radius: 8px !important;
    max-width: 650px !important;
    width: 90% !important;
    position: relative !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
}

.f4l-modal-close {
    position: absolute !important;
    top: 15px !important;
    right: 20px !important;
    font-size: 32px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    color: #777 !important;
    line-height: 1 !important;
}

.f4l-modal-close:hover {
    color: #000 !important;
}

.f4l-modal-title {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    font-size: 24px !important;
    border-bottom: 1px solid #eee !important;
    padding-bottom: 15px !important;
    color: #222 !important;
}

.f4l-modal-text {
    font-style: italic !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: #444 !important;
}

.f4l-modal-text p {
    margin-bottom: 15px !important;
}

/* Блок фотографов города */
.f4l-city-ph-section {
    margin: 20px auto 10px auto !important;
    max-width: 1000px !important;
}

.f4l-cp-header-box {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    padding: 15px 25px !important;
    margin-bottom: 20px !important;
    background-color: #f3f3f3 !important;
}

.f4l-cp-header-box h3 {
    font-size: 22px !important;
    margin: 0 30px 0 0 !important;
    color: #333 !important;
}

.f4l-cp-header-text {
    font-size: 14px !important;
    color: #333 !important;
    line-height: 1.4 !important;
}

/* Карточка фотографа */
.f4l-cp-card {
    display: flex !important;
    gap: 30px !important;
    margin-bottom: 30px !important;
    align-items: flex-start !important;
}

/* Кнопка "Подробнее" (Learn More) */
.f4l-learn-more-btn {
    margin-top: auto !important;
    display: flex !important;
    justify-content: center !important;
    padding-top: 20px !important;
    width: 100% !important;
}

.f4l-learn-more-btn img {
    height: 45px !important; /* Увеличили размер кнопки */
    width: auto !important;
    cursor: pointer !important;
    transition: transform 0.2s ease !important;
    max-width: none !important;
}

.f4l-learn-more-btn img:hover {
    transform: scale(1.05) !important;
}

/* ==================================== */
/* Карточка фотографа */
/* ==================================== */

/* Левая колонка (теперь полностью кликабельная как кнопка) */
.f4l-cp-left {
    width: 200px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    padding: 15px !important;
    border-radius: 8px !important;
}

.f4l-cp-left:hover {
    transform: translateY(-3px) !important;
    background-color: #f8f9fa !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08) !important;
}

.f4l-cp-avatar {
    width: 140px !important;
    height: 140px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin-bottom: 15px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.f4l-cp-name {
    font-size: 20px !important;
    font-weight: bold !important;
    color: #111 !important;
    margin-bottom: 4px !important;
}

.f4l-cp-rating {
    font-size: 14px !important;
    margin-bottom: 15px !important;
    color: #555 !important;
}

/* Визуальная кнопка "Send Request" внутри кликабельной зоны */
.f4l-cp-btn {
    background-color: #166088 !important;
    color: #ffffff !important;
    padding: 10px 16px !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    font-size: 14px !important;
    width: 100% !important;
    text-align: center !important;
    display: block !important;
    transition: background 0.2s !important;
}

.f4l-cp-left:hover .f4l-cp-btn {
    background-color: #0e4a6a !important;
}

/* Правая колонка */
.f4l-cp-right {
    flex-grow: 1 !important;
    overflow: hidden !important;
}

.f4l-cp-gallery {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto !important;
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
}

.f4l-cp-gallery-item {
    flex-shrink: 0 !important;
    width: auto !important;
    height: 180px !important;
    display: block !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}

.f4l-cp-gallery-item img {
    width: auto !important;
    height: 100% !important;
}

.f4l-cp-bio {
    font-style: italic !important;
    font-size: 13px !important;
    color: #444 !important;
    margin-bottom: 4px !important;
}

.f4l-cp-lang {
    font-style: italic !important;
    font-size: 13px !important;
    color: #444 !important;
    margin-bottom: 8px !important;
}

.f4l-cp-prices {
    font-size: 12px !important;
    color: #777 !important;
    font-style: italic !important;
}

/* Форма запроса */
.f4l-form-section {
    max-width: 800px !important;
    margin: 20px auto 40px auto !important;
    padding: 0 20px !important;
}

.f4l-form-title {
    text-align: center !important;
    font-size: 32px !important;
    font-weight: bold !important;
    color: #333333 !important;
    margin: 0 0 5px 0 !important;
}

.f4l-form-subtitle {
    text-align: center !important;
    font-size: 15px !important;
    color: #555555 !important;
    margin: 0 0 20px 0 !important;
}


/* Модальное окно делаем чуть шире, чтобы галерея красиво смотрелась */
.f4l-modal-content.f4l-modal-wide {
    max-width: 850px !important;
}

/* Контейнер галереи внутри модального окна */
.f4l-package-gallery-container {
    margin-top: 30px !important;
    border-top: 1px solid #eee !important;
    padding-top: 25px !important;
}

.f4l-package-gallery-title {
    font-size: 16px !important;
    font-weight: bold !important;
    margin-bottom: 15px !important;
    color: #333 !important;
}

/* Специфичный стиль для картинок галереи пакетов */
.f4l-package-gallery-item {
    height: 140px !important; /* Чуть меньше, чем у фотографов, чтобы не занимало пол-экрана */
    border: 1px solid #eee !important;
}

/* Чтобы ползунок прокрутки выглядел красиво */
.f4l-package-gallery-container .f4l-cp-gallery::-webkit-scrollbar {
    height: 6px;
}
.f4l-package-gallery-container .f4l-cp-gallery::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}


/* ==========================================================
   13. СТРАНИЦА PARTNER PAY
   ========================================================== */

.f4l-main-title {
    text-align: center !important;
    font-size: 26px !important;
    color: #333 !important;
    margin-top: 50px !important;
    margin-bottom: 20px !important;
    font-weight: normal !important;
}

.f4l-main-title strong {
    font-weight: bold !important;
}

/* Якорная ссылка "For Photographers" */
.f4l-anchor-wrapper {
    text-align: center !important;
    margin-bottom: 50px !important;
}

.f4l-anchor-link {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #111 !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.f4l-anchor-link:hover {
    color: #5a6573 !important;
    text-decoration: underline !important;
}

/* Одиночная центральная карточка */
.f4l-partner-card {
    max-width: 800px !important;
    margin: 0 auto 50px auto !important; /* Центрируем и задаем отступ снизу */
    border: 1px solid #e0e0e0 !important;
    background-color: #f3f3f3 !important; /* Цвет фона можно сделать #fff, если нужно идеально белым */
    padding: 50px 60px !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 25px rgba(0,0,0,0.03) !important;
}

.f4l-card-title {
    text-align: center !important;
    font-size: 22px !important;
    font-weight: bold !important;
    color: #222 !important;
    margin-bottom: 10px !important;
    margin-top: 0 !important;
}

.f4l-card-subtitle {
    text-align: center !important;
    font-size: 15px !important;
    color: #666 !important;
    margin-bottom: 40px !important;
    margin-top: 0 !important;
}

.f4l-partner-card .f4l-step-title {
    color: #2d6a78 !important;
    margin-bottom: 10px !important;
    margin-top: 30px !important;
    font-size: 16px !important;
}

.f4l-partner-card .f4l-step-title.f4l-step-first {
    margin-top: 0 !important;
}

.f4l-step-text {
    font-style: italic !important;
    font-size: 14px !important;
    color: #444 !important;
    margin-bottom: 15px !important;
    margin-top: 0 !important;
    padding-left: 20px !important;
    line-height: 1.6 !important;
}

/* Инфоблоки внутри карточки */
.f4l-info-block {
    margin-bottom: 25px !important;
    padding-left: 20px !important;
}

.f4l-info-block.f4l-margin-top {
    margin-top: 40px !important;
}

.f4l-info-title {
    font-size: 15px !important;
    font-weight: bold !important;
    color: #222 !important;
    margin-bottom: 8px !important;
}

.f4l-info-text {
    font-style: italic !important;
    font-size: 14px !important;
    color: #444 !important;
    margin: 0 0 6px 0 !important;
}

/* Центрированная кнопка в карточке */
.f4l-btn-wrapper-center {
    text-align: center !important;
    margin-top: 40px !important;
}

/* Блок с формой вступления */
.f4l-join-section {
    max-width: 800px !important;
    margin: 60px auto 0 !important;
    padding-bottom: 60px !important;
}

.f4l-join-title.f4l-form-title-center {
    font-size: 22px !important;
    font-weight: bold !important;
    color: #222 !important;
    margin-bottom: 30px !important;
    margin-top: 0 !important;
    text-align: center !important;
}

.f4l-join-section .wpforms-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.f4l-join-section .wpforms-form {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* ==========================================================
   14. СТРАНИЦА ПРОФИЛЯ ФОТОГРАФА
   ========================================================== */

.f4l-profile-wrapper {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
    font-family: Arial, sans-serif !important;
    color: #222 !important;
    background: #fff !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Верхняя сетка профиля (3 колонки) */
.f4l-profile-top-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    width: 100% !important;
    margin-bottom: 10px !important;
}

/* ВЫ МОЖЕТЕ МЕНЯТЬ ЭТИ ПРОЦЕНТЫ: 
   Сумма должна быть около 90%, чтобы оставалось место на пробелы между ними (justify-content: space-between) */
.f4l-col-bio        { width: 25% !important; }   /* Было 30%, стало 25% */
.f4l-col-services   { width: 32.5% !important; } /* Добавили освободившиеся проценты */
.f4l-col-additional { width: 32.5% !important; } /* Добавили освободившиеся проценты */

/* Главное фото */
.f4l-main-photo {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-bottom: 20px !important;
}










/* Имя и рейтинг */
.f4l-name-rating {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
}

.f4l-ph-name {
    font-size: 26px !important;
    font-weight: bold !important;
    margin: 0 !important;
    color: #333 !important;
}

.f4l-stars {
    font-size: 16px !important;
}

.f4l-reviews {
    color: #777 !important;
    font-size: 14px !important;
}

/* Биография */
.f4l-bio-text p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    font-style: italic !important;
    margin-bottom: 15px !important;
    color: #444 !important;
}

.f4l-lang-text {
    margin-top: 20px !important;
}

/* Заголовки услуг */
.f4l-s-title {
    font-weight: bold !important;
    font-size: 16px !important;
    margin-bottom: 10px !important;
}

.f4l-s-subtitle {
    font-size: 14px !important;
    margin-bottom: 5px !important;
    color: #333 !important;
}

/* Цены */
.f4l-prices-block {
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: #000 !important;
}

/* Список услуг с маркером */
ul.f4l-s-list {
    list-style: none !important;
    padding-left: 15px !important;
    margin: 0 !important;
}

ul.f4l-s-list li {
    font-size: 15px !important;
    margin-bottom: 5px !important;
    position: relative !important;
    list-style: none !important;
    line-height: 1.4 !important;
}

ul.f4l-s-list li::before {
    content: "•" !important;
    position: absolute !important;
    left: -15px !important;
    color: #555 !important;
}

/* Курсивный список дополнительных услуг */
ul.f4l-italic-list li {
    font-style: italic !important;
    color: #555 !important;
}


/* Портфолио */
.f4l-portfolio-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
}

.f4l-port-item {
    display: block !important;
    overflow: hidden !important;
    aspect-ratio: 1 / 1 !important;
    cursor: zoom-in !important;
}

.f4l-port-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.f4l-port-item:hover img {
    transform: scale(1.05) !important;
}


/* ==========================================================
   15. ПЕРЕХОД МЕЖДУ ЯЗЫКАМИ
   ========================================================== */

/* Плавно скрываем только тексты в момент ручного клика по языку */
[data-i18n],
[data-i18n-placeholder],
[data-i18n-html] {
    transition: opacity 0.15s ease;
}

/* Этот класс теперь добавляется скриптом ТОЛЬКО при ручном переключении в меню */
.f4l-lang-switching [data-i18n],
.f4l-lang-switching [data-i18n-placeholder],
.f4l-lang-switching [data-i18n-html] {
    opacity: 0;
}

/* ВНИМАНИЕ: Глобальная анимация f4lFadeIn для всей страницы УДАЛЕНА. 
   Благодаря серверному рендерингу (SSR) страница должна открываться мгновенно, 
   без искусственного появления из белого экрана. Это решает ошибку NO_FCP в Google. */


/* ==========================================================
   16. SVG ИКОНКА ПОИСКА
   ========================================================== */

.f4l-hero-search-field svg,
.f4l-search-box svg {
    width: 18px !important;
    height: 18px !important;
    opacity: 0.55 !important;
    margin-right: 12px !important;
    flex-shrink: 0 !important;
    fill: none !important;
    stroke: #333 !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    display: block !important;
}


/* ==========================================================
   17. СКРЫТИЕ ELEMENTOR HEADER/FOOTER
   ========================================================== */

.f4l-page-wrapper ~ .site-header,
.f4l-page-wrapper ~ .site-footer,
.f4l-photographer-page-wrapper ~ .site-header,
.f4l-photographer-page-wrapper ~ .site-footer {
    display: none !important;
}

/* ==========================================================
   18. АДАПТИВНОСТЬ — МОБИЛЬНЫЕ УСТРОЙСТВА
   ========================================================== */

/* 1024px - Маленькие десктопы и планшеты горизонтально */
@media (max-width: 1024px) {
    .f4l-grid-5 {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    .f4l-us-grid,
    .f4l-canada-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .f4l-col-bio      { width: 35% !important; }
    .f4l-col-services { width: 60% !important; }
    .f4l-col-form {
        width: 100% !important;
        margin-top: 40px !important;
    }
    .f4l-form-container {
        transform: scale(1) !important;
        margin-bottom: 0 !important;
    }
    .f4l-portfolio-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}





/* 900px - Планшеты и большие телефоны */
@media (max-width: 900px) {
    .f4l-search-wrapper {
        max-width: 100%;
    }
    .f4l-pricing-wrapper {
        width: 95% !important;
    }
    .f4l-pricing-grid {
        flex-direction: column !important;
        align-items: center !important;
    }
    .f4l-pricing-card {
        width: 100% !important;
        max-width: 420px !important;
    }
    .f4l-cp-card {
        flex-direction: column !important;
        align-items: center !important;
    }
    .f4l-cards-wrapper {
        flex-direction: column !important;
    }
    .f4l-card {
        padding: 30px 20px !important;
    }
    .f4l-bottom-info,
    .f4l-join-section {
        padding: 0 20px !important;
    }
    .f4l-join-section {
        padding-bottom: 30px !important;
    }
    /* На планшетах ставим картинки над текстом */
    .f4l-info-row {
        flex-direction: column !important;
        text-align: center;
        gap: 30px;
    }
    
    .f4l-info-row.f4l-reverse {
        flex-direction: column-reverse !important; /* Переворачиваем второй блок! */
        text-align: center;
        gap: 30px;
    }


    /* Мобильный вид для страницы How It Works */
    .f4l-hiw-video-float {
        float: none; /* Отключаем обтекание на мобилках */
        width: 100%; 
        max-width: 100%;
        margin: 10px 0 40px 0; /* Ставим видео по центру между текстами */
    }
    
    .f4l-step-title.f4l-step-first {
        margin-top: 35px !important; /* Возвращаем отступ первому заголовку на мобилках */
    }
    
    .f4l-video-modal-content .f4l-modal-close {
        right: 0 !important;
        top: -45px !important;
    }

}

/* 768px - Планшеты вертикально */
@media (max-width: 768px) {
    .f4l-profile-top-grid {
        flex-direction: column !important;
    }
    .f4l-col-bio,
    .f4l-col-services,
    .f4l-col-form {
        width: 100% !important;
        margin-bottom: 30px !important;
    }
    .f4l-portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Подготовка Главной страницы к мобильному виду */
    .f4l-hero-img-desktop {
        display: none !important;
    }
    .f4l-hero-img-mobile {
        display: block !important;
        width: 100%;
        height: auto;
    }

    /* Логотип: привязан к ширине экрана (vw), отступ сверху также в vw */
    .f4l-hero-logo {
        top: 6vw; /* Отступ сверху привязан к ширине экрана */
        left: 6vw; /* Отступ слева привязан к ширине экрана */
        width: clamp(75px, 20vw, 120px);
    }

    /* Цитата: размер шрифта и отступы в vw */
    .f4l-hero-quote {
        top: 6vw; /* На одном уровне с логотипом */
        right: 6vw;
        font-size: clamp(12px, 3.5vw, 18px);
    }

    /* Блок поиска: ширина и отступ снизу в vw */
    .f4l-search-box-container {
        width: 85%;
        padding: 20px;
        bottom: 8vw; /* Отступ снизу жестко привязан к ширине экрана */
        left: 7.5%; /* Центрируем по ширине */
    }
}


    /* 600px - Обычные телефоны */
    @media (max-width: 600px) {
    
    /* ...остальные ваши стили (сетки городов и т.д.)... */

    /* Геро-баннер на телефонах */
    .f4l-hero-logo {
        top: 5vw;
        left: 5vw;
        width: clamp(70px, 22vw, 100px);
    }

    .f4l-hero-quote {
        top: 5vw;
        right: 5vw;
        font-size: clamp(10px, 3.8vw, 14px);
    }

    .f4l-search-box-container {
        width: 88%;
        padding: 15px;
        bottom: 6vw; /* Отступ от низа в vw (чтобы не улетал слишком высоко) */
        left: 6%; /* Центрируем */
    }

    /* Уменьшаем шрифты кнопок и полей ввода везде на мобилках */
    .f4l-search-btn,
    .f4l-hero-search-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    




    .f4l-search-box input,
    .f4l-hero-search-field input {
        font-size: 13px;
        padding: 10px 0;
    }
    
    .f4l-hero-search-field,
    .f4l-search-box {
        min-height: 38px;
    }

    .f4l-search-box-container h2 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .f4l-popular-cities h2 {
        font-size: 20px;
    }
    .f4l-city-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .f4l-city-item {
        font-size: 13px;
        padding: 12px 8px;
    }
    
    /* Уменьшаем кнопку "View all cities" */
    .f4l-view-all {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .f4l-partner-card {
        padding: 30px 20px !important;
    }


/* ИНФО-БЛОКИ (Самолетик и фотик) */
    .f4l-info-row {
        flex-direction: column !important; /* Первый блок: самолетик сверху */
        gap: 20px !important; 
        margin-bottom: 50px !important;
    }
    
    .f4l-info-row.f4l-reverse {
        flex-direction: column-reverse !important; /* Второй блок: переворачиваем, чтобы фотик был сверху */
        gap: 20px !important; 
        margin-bottom: 50px !important;
    }
    
    /* Уменьшаем иконки в 2 раза */
    .f4l-info-icon {
        width: 90px !important; 
        margin: 0 auto !important; /* Выравниваем их по центру */
    }
    
    .f4l-info-text {
        font-size: 14px !important; /* Чуть мельче шрифт текста */
        text-align: left !important; /* Выравнивание по левому краю для читаемости */
    }

    .f4l-text-block {
        padding-left: 0 !important;
    }
    .f4l-closing-text {
        padding-left: 0 !important;
    }
    .f4l-btn-wrapper {
        padding-left: 0 !important;
    }
    .f4l-cancel-list {
        padding-left: 20px !important;
    }
    .f4l-main-title {
        font-size: 20px !important;
    }
    .f4l-card-title {
        font-size: 18px !important;
    }
    .f4l-page-title {
        font-size: 26px !important;
    }

    /* Футер на телефонах */
    .f4l-footer-content {
        flex-direction: column !important; /* На телефонах в столбик */
        gap: 15px !important;
        padding-left: 0 !important;
        align-items: center !important;
        text-align: center !important;
    }

}

/* 400px - Очень маленькие экраны (iPhone SE) */
@media (max-width: 400px) {
    .f4l-grid-5 {
        grid-template-columns: 1fr !important;
    }
    .f4l-us-grid,
    .f4l-canada-grid {
        grid-template-columns: 1fr;
    }
    .f4l-search-box-container {
        width: 90%;
        left: 5%;
        padding: 15px;
    }
    .f4l-city-grid {
        grid-template-columns: 1fr; /* В один столбик города */
    }
    .f4l-nav-primary {
        gap: 10px !important;
        font-size: 13px !important;
    }
}

/* ==========================================================
   СТИЛИ НАВИГАЦИИ (ДЕСКТОП И СЭНДВИЧ-МЕНЮ)
   ========================================================== */
.f4l-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    flex-grow: 1; /* Позволяет меню занять все место до кнопки языка */
}

.f4l-nav-primary {
    display: flex;
    align-items: center;
    gap: 25px; /* Расстояние между Home и How it works на десктопе */
}

.f4l-nav-more {
    display: flex;
    align-items: center;
    gap: 25px; /* Расстояние между ссылками на десктопе */
    margin-left: 25px; /* Отступ от Primary блока на десктопе */
}

/* Кнопка сэндвич по умолчанию скрыта */
.f4l-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #333;
    padding: 5px;
    cursor: pointer;
}

/* АДАПТИВНОСТЬ ШАПКИ ДЛЯ МОБИЛЬНЫХ (До 900px) */
@media (max-width: 900px) {
    .f4l-header-flex {
        flex-direction: row !important; /* Удерживаем в одну строку! */
        justify-content: space-between !important; /* Разносим левый блок (меню) и правый блок (языки) по краям */
        align-items: center !important;
        gap: 10px !important;
        padding: 15px 0 !important; /* Сброс паддингов, чтобы шапка не расползалась */
    }

    .f4l-nav {
        width: auto !important;
        flex-grow: 0; /* Не даем навигации занимать всё свободное место */
        justify-content: flex-start; /* Прижимаем всё меню влево */
        gap: 10px !important;
    }

    .f4l-nav-primary {
        gap: 15px; /* Расстояние между ссылками */
        font-size: 14px !important;
    }

    /* Показываем кнопку-сэндвич */
    .f4l-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 5px; /* Небольшой отступ от How it works */
        padding: 4px;
    }

    /* Прячем второстепенное меню и превращаем его в выпадающий блок */
    .f4l-nav-more {
        display: none; 
        position: absolute;
        top: 60px; /* Смещаем вниз под шапку */
        left: 20px;
        right: 20px;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 6px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
        gap: 15px;
        z-index: 9999;
        margin-left: 0;
    }

    /* Показываем выпадающее меню при клике */
    .f4l-nav-more.f4l-open {
        display: flex;
    }

    /* Правый блок (кнопка языка): прижимаем к правому краю */
    .f4l-lang-dropdown {
        margin-left: auto; /* Жестко толкает блок вправо */
        margin-top: 0 !important; /* Убираем возможные отступы сверху */
    }
}





/* ==========================================================
   СКРЫТИЕ ПАРТНЕРСКОГО ПОЛЯ В WPFORMS (FREE VERSION)
   ========================================================== */
.f4l-hidden-wrapper {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================================
   ГОРИЗОНТАЛЬНЫЕ ГАЛЕРЕИ (ПОРТФОЛИО ФОТОГРАФА)
   ========================================================== */
.f4l-gallery-row-wrapper {
    margin-bottom: 40px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding-bottom: 10px !important;
}

.f4l-gallery-row-wrapper:last-child {
    border-bottom: none !important;
}

.f4l-gallery-row-title {
    font-size: 18px !important;
    font-weight: bold !important;
    font-style: italic !important;
    margin-bottom: 15px !important;
    color: #333 !important;
}

.f4l-horizontal-gallery {
    display: flex !important;
    gap: 15px !important;
    overflow-x: auto !important;
    padding-bottom: 15px !important; /* Место для ползунка */
    scrollbar-width: thin !important; /* Firefox */
}

/* Красивый ползунок прокрутки для Chrome/Safari */
.f4l-horizontal-gallery::-webkit-scrollbar {
    height: 8px !important;
}
.f4l-horizontal-gallery::-webkit-scrollbar-track {
    background: #f9f9f9 !important;
    border-radius: 4px !important;
}
.f4l-horizontal-gallery::-webkit-scrollbar-thumb {
    background: #d0d0d0 !important;
    border-radius: 4px !important;
}
.f4l-horizontal-gallery::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0 !important;
}

.f4l-hg-item {
    flex: 0 0 auto !important;
    height: 250px !important; /* ФИКСИРОВАННАЯ ВЫСОТА для десктопов */
    width: auto !important;   /* ШИРИНА ПОДСТРАИВАЕТСЯ АВТОМАТИЧЕСКИ под пропорции фото */
    border-radius: 6px !important;
    overflow: hidden !important;
    display: block !important;
    position: relative !important;
    background-color: #f4f4f4 !important;
}

.f4l-hg-item img {
    width: auto !important;  /* Позволяет картинке диктовать ширину блока */
    height: 100% !important; /* Жестко привязываем к высоте контейнера */
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
    display: block !important;
}

.f4l-hg-item:hover img {
    transform: scale(1.05) !important;
}

/* Иконка Play для видео остается без изменений */
.f4l-video-icon-overlay {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 45px !important;
    height: 45px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}

.f4l-video-icon-overlay svg {
    width: 22px !important;
    height: 22px !important;
    fill: #333 !important;
    margin-left: 3px !important;
}

/* Адаптивность для телефонов (меняем только ВЫСОТУ) */
@media (max-width: 768px) {
    .f4l-hg-item {
        height: 200px !important; 
    }
}

@media (max-width: 480px) {
    .f4l-hg-item {
        height: 150px !important; 
    }
}




/* ==========================================================
   ИСПРАВЛЕНИЕ: РОВНО 3 КОЛОНКИ СТРАН НА СМАРТФОНАХ
   ========================================================== */
@media (max-width: 600px) {
    /* 1. Главная сетка: жестко ставим 3 колонки для всего блока */
    .f4l-grid-5 {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px 10px !important;
        align-items: start !important;
    }
    
    /* 2. Отменяем прошлую ошибку: списки городов внутри страны возвращаем в 1 колонку */
    .f4l-country-block ul {
        display: block !important; 
    }
    
    /* 3. Сетки США и Канады (так как они растянуты на всю ширину) тоже делим ровно на 3 колонки */
    .f4l-us-grid, .f4l-canada-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
    .f4l-us-grid ul, .f4l-canada-grid ul {
        display: block !important;
    }
    
    /* 4. Уменьшаем шрифты, чтобы в 3-х колонках текст не наезжал друг на друга */
    .f4l-country-block h4 {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }
    .f4l-country-block ul li {
        font-size: 12px !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important; /* Разрешаем перенос длинных названий */
    }
}

/* Для совсем крошечных экранов (например, старых iPhone) ставим 2 колонки, иначе будет каша */
@media (max-width: 400px) {
    .f4l-grid-5, .f4l-us-grid, .f4l-canada-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ==========================================================
   ИСПРАВЛЕНИЕ: ВЕРТИКАЛЬНОЕ ВИДЕО (БЕЗ БЕЛЫХ ПОЛЕЙ И СКРОЛЛА)
   ========================================================== */
.f4l-modal-content.f4l-video-modal-content {
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important; /* Убиваем внутренний ползунок прокрутки */
    max-height: 90vh !important; /* Окно не может быть выше экрана */
    width: fit-content !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.f4l-modal-content.f4l-video-modal-content video {
    width: auto !important;
    height: auto !important;
    max-height: 90vh !important; /* Жестко ограничиваем высоту видео (90% от экрана) */
    max-width: 100vw !important; /* Жестко ограничиваем ширину видео */
    object-fit: contain !important; /* Сохраняем пропорции без обрезки */
    border-radius: 12px !important;
    background: transparent !important;
    margin: 0 auto !important;
    display: block !important;
}

/* Белый крестик закрытия снаружи видео */
.f4l-modal-content.f4l-video-modal-content .f4l-modal-close {
    top: -40px !important;
    right: 0 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
}

/* На мобильных чуть сдвигаем крестик, чтобы не улетал за края экрана */
@media (max-width: 600px) {
    .f4l-modal-content.f4l-video-modal-content .f4l-modal-close {
        right: 10px !important;
    }
}


/* ==========================================================
   СТИЛИ ДЛЯ ТАБЛИЦЫ ПРОЗРАЧНОСТИ (PARTNER PAY)
   ========================================================== */

.f4l-transparency-section {
    max-width: 1000px !important;
    margin: 0 auto 50px auto !important;
}

.f4l-transparency-card {
    background-color: #f3f3f3 !important;
    border: 1px solid #e0e0e0 !important;
    padding: 50px 40px !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 25px rgba(0,0,0,0.03) !important;
}

.f4l-transparency-title {
    text-align: center !important;
    font-size: 24px !important;
    font-weight: bold !important;
    color: #222 !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

.f4l-transparency-subtitle {
    text-align: center !important;
    font-size: 15px !important;
    color: #555 !important;
    margin-bottom: 30px !important;
}

.f4l-transparency-desc {
    text-align: center !important;
    font-size: 14px !important;
    color: #777 !important;
    margin-bottom: 25px !important;
    font-style: italic !important;
}

/* Контейнер для адаптивного скролла на мобилках */
.f4l-table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important; /* Плавный скролл на iOS */
    border: 1px solid #eee !important;
    border-radius: 6px !important;
    background: #fff !important;
}


.f4l-transparency-table {
    width: 100% !important;
    min-width: 750px !important;
    border-collapse: collapse !important;
    margin: 0 !important; /* <--- ВОТ ЭТА СТРОЧКА УБИРАЕТ ЛИШНЮЮ ПОЛОСУ СНИЗУ */
    font-family: Arial, sans-serif !important;
    font-size: 13px !important;
    color: #333 !important;
    text-align: center !important;
}

.f4l-transparency-table th,
.f4l-transparency-table td {
    padding: 15px 12px !important;
    border: 1px solid #eee !important;
    vertical-align: middle !important;
}

.f4l-transparency-table th {
    background-color: #fff !important;
    font-weight: bold !important;
    color: #111 !important;
}

.f4l-transparency-table th span {
    font-weight: normal !important;
    font-size: 12px !important;
    color: #666 !important;
}

.f4l-transparency-table td {
    line-height: 1.5 !important;
}

/* Первый столбец (заголовки строк) - выравнивание по левому краю */
.f4l-transparency-table td:first-child {
    text-align: left !important;
    width: 25% !important;
}

/* Последний столбец (комментарии) - выравнивание по левому краю */
.f4l-transparency-table td:last-child {
    text-align: left !important;
    font-size: 12px !important;
    color: #555 !important;
    width: 30% !important;
}

/* Выделение строки Партнера */
.f4l-highlight-row {
    background-color: #f2f9fa !important; /* Легкий синеватый фон */
}

.f4l-highlight-row td {
    color: #3b768a !important; /* Ваш фирменный цвет */
}

.f4l-highlight-row td:first-child strong {
    color: #3b768a !important;
}

.f4l-highlight-row span {
    font-size: 12px !important;
}

/* Адаптивность для телефонов */
@media (max-width: 768px) {
    .f4l-transparency-card {
        padding: 30px 15px !important; /* Уменьшаем отступы на мобилках */
    }
    .f4l-transparency-title {
        font-size: 20px !important;
    }
}


/* ==========================================================
   КНОПКА "MORE" И МОДАЛЬНОЕ ОКНО ЯЗЫКОВ
   ========================================================== */
.f4l-lang-more {
    border-top: 1px solid #eee !important;
    font-weight: bold !important;
    color: #3b768a !important;
    justify-content: center !important;
    margin-top: 5px !important;
    padding-top: 12px !important;
    text-align: center !important;
}

.f4l-lang-modal-content {
    max-width: 900px !important;
    padding: 40px !important;
}

.f4l-lang-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
}

.f4l-lang-region-title {
    font-size: 16px !important;
    color: #777 !important;
    text-transform: uppercase !important;
    margin-bottom: 15px !important;
    border-bottom: 1px solid #eee !important;
    padding-bottom: 10px !important;
}

.f4l-modal-lang-link {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px !important;
    color: #333 !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    transition: background 0.2s !important;
    font-size: 15px !important;
    font-weight: normal !important;
}

.f4l-modal-lang-link img {
    width: 20px !important;
    height: auto !important;
}

.f4l-modal-lang-link:hover {
    background: #f5f5f5 !important;
}

.f4l-modal-lang-link.f4l-lang-active {
    font-weight: bold !important;
    background: #eef5f8 !important;
    color: #3b768a !important;
}

@media (max-width: 768px) {
    .f4l-lang-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .f4l-lang-modal-content {
        padding: 30px 20px !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
    }
}



/* ==========================================================
   ПЕРЕЛИНКОВКА (СВЯЗАННЫЕ ГОРОДА / SILO STRUCTURE)
   ========================================================== */
.f4l-related-section {
    border-top: 1px solid #eeeeee !important;
    padding-top: 40px !important;
    margin-top: 60px !important;
    margin-bottom: 60px !important;
    text-align: center !important;
}

.f4l-related-title {
    font-size: 20px !important;
    color: #333333 !important;
    margin-bottom: 25px !important;
    font-weight: normal !important;
}

.f4l-related-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px !important;
}

.f4l-related-tag {
    display: inline-block !important;
    background-color: #f8f9fa !important;
    color: #333333 !important;
    padding: 12px 24px !important;
    border-radius: 30px !important; /* Овальные кнопки-теги */
    font-size: 14px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02) !important;
}

.f4l-related-tag:hover {
    background-color: #3b768a !important; /* Ваш фирменный цвет */
    color: #ffffff !important;
    border-color: #3b768a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(59, 118, 138, 0.2) !important;
}

@media (max-width: 600px) {
    .f4l-related-section {
        margin-top: 40px !important;
        margin-bottom: 40px !important;
        padding-top: 30px !important;
    }
    .f4l-related-tag {
        padding: 10px 18px !important;
        font-size: 13px !important;
    }
}




/* ==========================================================
   НОВЫЙ ДИЗАЙН ПАКЕТОВ ФОТОСЕССИЙ (ДЕСКТОП И МОБАЙЛ)
   ========================================================== */

.f4l-new-package-section {
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    padding: 30px 0;
    margin-bottom: 40px;
}

/* Верхняя строка */
.f4l-new-package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}

.f4l-new-package-select-box {
    flex: 1;
    max-width: 320px;
}

.f4l-new-package-price-box {
    flex: 1;
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.f4l-new-package-btn-box {
    flex: 1;
    text-align: right;
}

/* Стилизация Select */
.f4l-new-package-select {
    width: 100%;
    padding: 12px 40px 12px 15px;
    font-size: 18px;
    font-weight: bold;
    color: #111;
    border: 1px solid #ccc;
    border-radius: 6px;
    appearance: none;
    -webkit-appearance: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23000000" viewBox="0 0 16 16"><path d="M4 6l4 4 4-4z"/></svg>') no-repeat right 15px center;
    background-color: #fff;
    cursor: pointer;
}

/* Синяя кнопка "Отправить запрос" */
.f4l-btn-blue {
    background-color: #166088 !important;
    color: #ffffff !important;
    padding: 14px 35px !important;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: bold;
    display: inline-block;
    font-size: 16px;
    transition: background 0.2s ease;
}

.f4l-btn-blue:hover {
    background-color: #0e4a6a !important;
}

/* Список особенностей (в линию с разделителями) */
.f4l-new-features-list {
    margin-bottom: 15px;
    line-height: 1.6;
}

.f4l-new-feature-item {
    display: inline;
    font-size: 14px;
    color: #222;
}

.f4l-new-feature-item strong {
    font-weight: bold;
}

.f4l-new-feature-item::after {
    content: " | ";
    color: #b0b0b0;
    margin: 0 6px;
}

.f4l-new-feature-item:last-child::after {
    content: "";
}

/* Описание пакета (На десктопе видно, на мобайле скроем) */
.f4l-new-desc-desktop {
    display: block;
    font-style: italic;
    font-size: 14px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Мобильная кнопка "Узнать больше" (Скрыта на десктопе) */
.f4l-new-read-more-mobile {
    display: none; 
    background-color: #c4c5c7;
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 20px;
}

/* Галерея: убираем лишние заголовки */
.f4l-new-gallery-wrap .f4l-package-gallery-title {
    display: none !important;
}

.f4l-new-gallery-wrap .f4l-package-gallery-container {
    margin-top: 0 !important;
    border-top: none !important;
    padding-top: 0 !important;
}

/* Нижняя мобильная кнопка "Отправить запрос" (Скрыта на десктопе) */
.f4l-mobile-bottom-btn {
    display: none; 
}

/* ================= АДАПТИВНОСТЬ ================= */

/* Планшеты (до 900px) */
@media (max-width: 900px) {
    .f4l-new-package-price-box { font-size: 26px; }
    .f4l-new-package-select { font-size: 16px; }
    .f4l-btn-blue { padding: 12px 25px !important; font-size: 15px; }
}

/* Мобильные телефоны (до 600px) */
@media (max-width: 600px) {
    .f4l-new-package-section {
        padding: 20px 0;
    }
    
    /* Перестраиваем шапку: Select слева, Цена справа */
    .f4l-new-package-header {
        flex-wrap: wrap;
        margin-bottom: 15px;
        gap: 15px;
    }
    .f4l-new-package-select-box {
        flex: 0 0 55%;
        max-width: none;
    }
    .f4l-new-package-price-box {
        flex: 0 0 40%;
        text-align: right;
        font-size: 24px;
    }
    
    /* Прячем верхнюю кнопку */
    .f4l-new-package-btn-box {
        display: none;
    }
    
    /* Прячем текст описания, показываем кнопку модалки */
    .f4l-new-desc-desktop {
        display: none;
    }
    .f4l-new-read-more-mobile {
        display: inline-block;
    }
    
    /* Показываем нижнюю кнопку "Отправить запрос" */
    .f4l-mobile-bottom-btn {
        display: block;
        width: 100%;
        margin-top: 20px;
    }
}


/* ==========================================================
   КОРРЕКТИРОВКИ ДИЗАЙНА ПО ПУНКТАМ 1, 2, 3
   ========================================================== */

/* 1. Делаем синюю кнопку пакетов идентичной кнопке фотографа (размер, отступы) */
.f4l-btn-blue {
    padding: 10px 16px !important;
    font-size: 14px !important;
    border-radius: 4px !important;
    line-height: normal !important;
}

/* 2. Высота галереи пакетов теперь 180px (как у фотографов), а не 140px */
.f4l-package-gallery-item {
    height: 180px !important;
}

/* 3. Делаем блок фотографов на всю ширину страницы (убираем ограничение в 1000px) */
.f4l-city-ph-section {
    max-width: 100% !important;
}


/* ==========================================================
   ИСПРАВЛЕНИЯ: ОТСТУПЫ В ШАПКЕ И ЖЕЛЕЗОБЕТОННЫЙ СТИЛЬ КНОПКИ
   ========================================================== */

/* 1. Возвращаем боковые отступы шапке (выравниваем с хлебными крошками) */
.f4l-header-flex {
    padding: 15px 20px !important;
}

/* 2. Защищенный стиль для синей кнопки пакетов (полная копия кнопки фотографа) */
a.f4l-btn-blue,
div.f4l-page-wrapper a.f4l-btn-blue,
div.f4l-page-wrapper a.f4l-btn-blue:visited {
    display: inline-block !important;
    background-color: #166088 !important;
    color: #ffffff !important;
    padding: 10px 16px !important;  /* Точно как у кнопки фотографа */
    border-radius: 4px !important;
    font-weight: bold !important;
    font-size: 14px !important;     /* Точно как у кнопки фотографа */
    text-align: center !important;
    line-height: normal !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    min-height: 0 !important;
    width: auto !important;
    box-sizing: border-box !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

a.f4l-btn-blue:hover,
div.f4l-page-wrapper a.f4l-btn-blue:hover {
    background-color: #0e4a6a !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Делаем нижнюю мобильную кнопку на всю ширину */
.f4l-mobile-bottom-btn a.f4l-btn-blue,
div.f4l-page-wrapper .f4l-mobile-bottom-btn a.f4l-btn-blue {
    display: block !important;
    width: 100% !important;
}


/* ==========================================================
   ИСПРАВЛЕНИЕ: ГОРИЗОНТАЛЬНЫЙ ВИД ФОТОГРАФА НА МОБИЛЬНЫХ
   ========================================================== */

@media (max-width: 900px) {
    /* Отменяем вертикальное выравнивание, жестко возвращаем в строку */
    .f4l-cp-card,
    div.f4l-page-wrapper .f4l-cp-card {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }

    /* Уменьшаем левую колонку (Аватар и кнопка), чтобы влезла галерея */
    .f4l-cp-left,
    div.f4l-page-wrapper .f4l-cp-left {
        width: 110px !important; 
        padding: 10px !important;
        flex-shrink: 0 !important;
    }

    .f4l-cp-avatar {
        width: 75px !important;
        height: 75px !important;
        margin-bottom: 10px !important;
    }

    .f4l-cp-name {
        font-size: 15px !important;
    }

    .f4l-cp-rating {
        font-size: 11px !important;
        margin-bottom: 10px !important;
    }

    /* Кнопка с именем под аватаром на мобильном */
    .f4l-cp-btn,
    div.f4l-page-wrapper .f4l-cp-btn {
        font-size: 12px !important;
        padding: 8px 10px !important;
    }

    /* Правая колонка с галереей занимает оставшееся место */
    .f4l-cp-right,
    div.f4l-page-wrapper .f4l-cp-right {
        width: calc(100% - 125px) !important; 
        flex-grow: 1 !important;
        min-width: 0 !important; /* КРИТИЧНО ВАЖНО: не дает блоку сломать скролл и вылезти за экран */
    }

    /* Гарантируем горизонтальный скролл галереи */
    .f4l-cp-gallery {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important; /* Плавный скролл на iPhone */
        padding-bottom: 10px !important;
    }

    /* Уменьшаем высоту фотографий на мобилках (и в пакетах, и у фотографов), 
       чтобы они помещались на экране гармонично */
    .f4l-cp-gallery-item,
    .f4l-package-gallery-item {
        height: 120px !important;
    }
}


/* ==========================================================
   ИСПРАВЛЕНИЕ: РАЗМЕР АВАТАРА НА СТРАНИЦЕ ПРОФИЛЯ (МОБАЙЛ)
   ========================================================== */

@media (max-width: 900px) {
    .f4l-main-photo,
    div.f4l-photographer-page-wrapper .f4l-main-photo {
        width: 50% !important;     /* Делаем ширину 50% на мобильных */
        height: auto !important;
        margin-bottom: 20px !important;
        /* Если захотите, чтобы фото стояло по центру экрана, раскомментируйте строку ниже: */
        /* margin: 0 auto 20px auto !important; */
    }
}


/* ==========================================================
   ИСПРАВЛЕНИЯ: ПУЛЬСАЦИЯ СЕЛЕКТА И ШИРИНА ТЕКСТА НА МОБИЛЬНЫХ
   ========================================================== */

/* 1. Пульсация и свечение для выпадающего списка пакетов */
@keyframes f4l-pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(22, 96, 136, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(22, 96, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 96, 136, 0); }
}

.f4l-new-package-select {
    border: 2px solid #166088 !important; /* Выделяем рамку фирменным синим цветом */
    animation: f4l-pulse-border 2s infinite; /* Включаем пульсацию */
    /* Делаем саму стрелочку внутри списка тоже синей (%23166088) */
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23166088" viewBox="0 0 16 16"><path d="M4 6l4 4 4-4z"/></svg>') no-repeat right 15px center !important;
    background-color: #fff !important;
}

/* При клике (фокусе) на список убираем пульсацию, чтобы не отвлекала */
.f4l-new-package-select:focus {
    animation: none;
    outline: none;
}

/* 2. Исправление зажатого текста дополнительных услуг на странице фотографа (планшеты и мобайл) */
@media (max-width: 900px) {
    /* Принудительно выстраиваем колонки друг под другом */
    .f4l-profile-top-grid {
        flex-direction: column !important;
    }
    
    /* Растягиваем ВСЕ ТРИ колонки на 100% ширины экрана */
    .f4l-col-bio,
    .f4l-col-services,
    .f4l-col-additional {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 30px !important;
    }

    /* Растягиваем кнопку "Перейти к форме запроса" на всю ширину для удобства нажатия пальцем */
    .f4l-btn-wrapper-center {
        text-align: center !important;
        width: 100% !important;
    }

    a.f4l-action-btn,
    div.f4l-photographer-page-wrapper a.f4l-action-btn {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 15px 20px !important;
        white-space: normal !important; /* Разрешаем перенос длинного текста в кнопке, если у пользователя очень узкий экран */
    }
}


/* ==========================================================
   СКРОЛЛ ДЛЯ ВЫПАДАЮЩЕГО СПИСКА ЯЗЫКОВ
   ========================================================== */
.f4l-lang-menu {
    max-height: 60vh !important;
    overflow-y: auto !important;
}
.f4l-lang-menu::-webkit-scrollbar { 
    width: 6px; 
}
.f4l-lang-menu::-webkit-scrollbar-track { 
    background: #f1f1f1; border-radius: 4px; 
}
.f4l-lang-menu::-webkit-scrollbar-thumb { 
    background: #c1c1c1; border-radius: 4px; 
}
.f4l-lang-menu::-webkit-scrollbar-thumb:hover { 
    background: #a8a8a8; 
}






    .f4l-sm-loc-title-mobile {
        font-size: 20px !important;
        font-weight: bold !important;
        color: #222 !important;
        margin: 0 0 10px 0 !important;
        text-align: center !important;
        width: 100% !important;
    }

    .f4l-sm-loc-stars-mobile {
        font-size: 22px !important;
        text-align: center !important;
        width: 100% !important;
        margin-bottom: 20px !important;
        letter-spacing: 3px !important;
    }

    .f4l-sm-col-desc, .f4l-sm-col-nuance, .f4l-sm-col-gps, .f4l-sm-col-score {
        width: 100% !important; padding: 0 !important; text-align: left !important;
    }
    .f4l-sm-col-desc p { margin-bottom: 20px !important; }
    .f4l-sm-col-nuance { margin-bottom: 25px !important; }

    /* Панель управления на мобильных */
    .f4l-sm-controls-wrap { padding: 30px 20px !important; }
    .f4l-sm-control-row { flex-direction: column !important; align-items: flex-start !important; gap: 15px !important; }
    .f4l-sm-cr-label { width: 100% !important; padding-bottom: 0 !important; }
    .f4l-sm-cr-inputs, .f4l-sm-cr-buttons-right { width: 100% !important; }
    .f4l-sm-cr-inputs { flex-direction: column !important; gap: 15px !important; align-items: stretch !important; }
}




/* ==========================================================
   СЕКРЕТНАЯ КАРТА ФОТОЛОКАЦИЙ (ТИЗЕР И ОСНОВА)
   ========================================================== */

/* --- 1. ТИЗЕР (ДЕСКТОП: ИДЕАЛЬНАЯ СЕТКА) --- */
.f4l-secret-teaser-wrap {
    margin-top: 40px !important;
    margin-bottom: 50px !important;
}

html body #main-content .f4l-secret-teaser {
    display: grid !important;
    /* 3 колонки: 35% лево, 25% центр, 32% право */
    grid-template-columns: 35% 25% 32% !important; 
    /* 2 строки, чтобы заголовок был над кнопкой */
    grid-template-rows: auto auto !important;
    grid-template-areas: 
        "title map desc"
        "button map empty" !important;
    justify-content: space-between !important;
    align-items: center !important;
    background-color: #f7f9fa !important; 
    border: 1px solid #eaeaea !important;
    border-radius: 8px !important;
    padding: 35px 40px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Раскидываем 4 элемента по зонам сетки */
html body #main-content .f4l-st-title { 
    grid-area: title !important; 
    font-size: 24px !important; 
    font-weight: bold !important; 
    color: #222 !important; 
    margin: 0 0 20px 0 !important; 
    line-height: 1.3 !important; 
    text-align: left !important; 
}

html body #main-content .f4l-st-map-link { 
    grid-area: map !important; 
    display: block !important; 
    border-radius: 8px !important; 
    overflow: hidden !important; 
    border: 1px solid #ddd !important; 
    transition: transform 0.2s ease !important; 
    cursor: zoom-in !important; 
    width: 100% !important; 
    max-width: 250px !important; 
    margin: 0 auto !important; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important; 
}

html body #main-content .f4l-st-desc { 
    grid-area: desc !important; 
    font-size: 16px !important; 
    color: #333 !important; 
    margin: 0 !important; 
    line-height: 1.5 !important; 
    font-weight: bold !important; 
    text-align: left !important; 
}

html body #main-content .f4l-secret-teaser a.f4l-st-btn { 
    grid-area: button !important; 
    display: inline-flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    width: max-content !important; 
    justify-self: start !important; 
    padding: 12px 35px !important; 
    background-color: #166088 !important; 
    color: #fff !important; 
    border-radius: 4px !important; 
    font-weight: bold !important; 
    font-size: 15px !important; 
    text-decoration: none !important; 
    transition: background 0.2s ease !important; 
    border: none !important; 
    margin: 0 !important; 
}

html body #main-content .f4l-st-map-link:hover { transform: scale(1.03) !important; box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important; }
html body #main-content .f4l-secret-teaser a.f4l-st-btn:hover { background-color: #0e4a6a !important; color: #fff !important; }
html body #main-content .f4l-st-map-img { width: 100% !important; height: auto !important; display: block !important; margin: 0 !important; }


/* --- 2. ОСНОВНОЙ БЛОК (КАРТА И ЛОКАЦИИ) --- */
.f4l-secret-main-wrap { margin-top: 80px !important; margin-bottom: 60px !important; padding-top: 50px !important; border-top: 1px solid #eaeaea !important; }
.f4l-sm-title { text-align: center !important; font-size: 32px !important; font-weight: bold !important; color: #333 !important; margin-bottom: 10px !important; }
.f4l-sm-subtitle { text-align: center !important; font-size: 20px !important; font-weight: normal !important; color: #555 !important; margin-bottom: 30px !important; }

.f4l-sm-top-text {
    font-size: 15px !important;
    color: #444 !important;
    line-height: 1.6 !important;
    margin-bottom: 60px !important; 
    padding: 20px 30px !important;
    background-color: #f7f9fa !important;
    border-left: 4px solid #166088 !important;
    border-radius: 4px !important;
}

html body .f4l-secret-main-wrap .f4l-strict-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

html body .f4l-secret-main-wrap .f4l-strict-col-1 { flex: 0 0 10% !important; max-width: 10% !important; text-align: center !important; }
html body .f4l-secret-main-wrap .f4l-strict-col-2 { flex: 0 0 45% !important; max-width: 45% !important; text-align: left !important; padding-right: 30px !important; padding-left: 10px !important; }
html body .f4l-secret-main-wrap .f4l-strict-col-3 { flex: 0 0 25% !important; max-width: 25% !important; text-align: left !important; padding-right: 20px !important; }
html body .f4l-secret-main-wrap .f4l-strict-col-4 { flex: 0 0 20% !important; max-width: 20% !important; display: flex !important; justify-content: flex-end !important; }

.f4l-sm-table-header { border-bottom: 2px solid #eee !important; padding-bottom: 15px !important; margin-bottom: 30px !important; font-size: 14px !important; color: #777 !important; }
.f4l-sm-location-row { border-bottom: 1px solid #eee !important; padding-bottom: 30px !important; margin-bottom: 30px !important; }
html body .f4l-secret-main-wrap .f4l-strict-row.f4l-hidden-loc { display: none !important; }

.f4l-sm-score-num { font-size: 18px !important; color: #555 !important; }
.f4l-sm-col-score { padding-top: 5px !important; }
.f4l-sm-loc-title-desktop { font-size: 18px !important; font-weight: bold !important; color: #222 !important; margin: 0 0 15px 0 !important; }
.f4l-sm-col-desc p { font-size: 14px !important; color: #444 !important; line-height: 1.6 !important; margin: 0 !important; }
.f4l-sm-loc-stars-desktop { font-size: 20px !important; margin-bottom: 15px !important; letter-spacing: 2px !important; }
.f4l-dynamic-nuance { font-size: 13px !important; color: #444 !important; font-style: italic !important; line-height: 1.5 !important; }
.f4l-btn-gps { display: inline-block !important; padding: 12px 20px !important; font-size: 13px !important; white-space: nowrap !important; }

/* --- 3. ПАНЕЛЬ УПРАВЛЕНИЯ (ЖЕЛЕЗОБЕТОННЫЙ GRID) --- */
.f4l-panel-wrap { background-color: #fafafa !important; border: 1px solid #eee !important; border-radius: 8px !important; padding: 40px 50px !important; margin-top: 50px !important; margin-bottom: 40px !important; }

html body .f4l-panel-wrap .f4l-panel-row {
    display: grid !important;
    grid-template-columns: 30% 42% 24% !important; 
    gap: 2% !important; 
    align-items: center !important; 
    width: 100% !important;
}

html body .f4l-panel-wrap .f4l-row-code { margin-top: 20px !important; }
.f4l-panel-label { font-size: 16px !important; font-weight: bold !important; color: #222 !important; line-height: 1.4 !important; margin: 0 !important; }
.f4l-sm-input-block { display: flex !important; flex-direction: column !important; width: 100% !important; }
.f4l-sm-input-block label { font-size: 12px !important; color: #777 !important; margin-bottom: 5px !important; font-weight: bold !important; display: block !important; }
.f4l-align-bottom { align-self: end !important; }

.f4l-sm-select, .f4l-sm-input { width: 100% !important; height: 45px !important; box-sizing: border-box !important; font-size: 15px !important; margin: 0 !important; padding: 0 15px !important; border: 1px solid #166088 !important; border-radius: 4px !important; color: #333 !important; background-color: #fff !important; display: block !important; }
.f4l-sm-select { appearance: none !important; -webkit-appearance: none !important; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23166088" viewBox="0 0 16 16"><path d="M4 6l4 4 4-4z"/></svg>') no-repeat right 15px center !important; background-color: #fff !important; cursor: pointer !important; }
.f4l-btn-primary { width: 100% !important; height: 45px !important; font-size: 15px !important; padding: 0 !important; display: flex !important; align-items: center !important; justify-content: center !important; box-sizing: border-box !important; }

html body .f4l-panel-wrap a.f4l-btn-get-code,
html body .f4l-panel-wrap a.f4l-btn-get-code:visited { background-color: #3b768a !important; color: #ffffff !important; border: none !important; border-radius: 4px !important; width: 100% !important; height: 45px !important; display: flex !important; align-items: center !important; justify-content: center !important; text-align: center !important; font-size: 15px !important; font-weight: bold !important; text-decoration: none !important; box-sizing: border-box !important; transition: background 0.2s ease !important; margin: 0 !important; }
html body .f4l-panel-wrap a.f4l-btn-get-code:hover { background-color: #2a5a6b !important; color: #ffffff !important; }
.f4l-panel-divider { border: 0 !important; height: 1px !important; background: #e0e0e0 !important; margin: 30px 0 !important; }

.f4l-desktop-only { display: block !important; }
.f4l-mobile-only { display: none !important; }
.f4l-mobile-hidden { visibility: hidden !important; }

/* --- 4. АДАПТИВНОСТЬ (МОБИЛЬНЫЕ) --- */
@media (max-width: 900px) {

    /* ТИЗЕР НА МОБИЛЬНЫХ */
    html body #main-content .f4l-secret-teaser {
        display: flex !important;
        flex-direction: column !important;
        padding: 35px 20px !important;
        text-align: center !important;
        gap: 0 !important;
    }
    
    html body #main-content .f4l-st-title { order: 1 !important; margin: 0 0 25px 0 !important; font-size: 22px !important; text-align: center !important; }
    html body #main-content .f4l-st-map-link { order: 2 !important; width: 80% !important; max-width: 250px !important; margin: 0 auto 25px auto !important; }
    html body #main-content .f4l-st-desc { order: 3 !important; text-align: center !important; margin: 0 0 25px 0 !important; font-size: 15px !important; }
    html body #main-content .f4l-secret-teaser a.f4l-st-btn { order: 4 !important; width: 100% !important; margin: 0 !important; }
    
    /* ОСНОВНОЙ БЛОК НА МОБИЛЬНЫХ */
    html body .f4l-secret-main-wrap .f4l-strict-row { flex-direction: column !important; }
    html body .f4l-secret-main-wrap .f4l-sm-table-header, html body .f4l-secret-main-wrap .f4l-strict-row.f4l-sm-table-header { display: none !important; height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; }    

    .f4l-desktop-only { display: none !important; }
    .f4l-mobile-only { display: block !important; }
    .f4l-mobile-hidden { display: none !important; }

    .f4l-sm-top-text { padding: 15px !important; font-size: 14px !important; margin-bottom: 50px !important; }
    .f4l-sm-location-row { background-color: #fafafa !important; padding: 25px !important; border: 1px solid #eee !important; border-radius: 8px !important; }
    .f4l-sm-loc-title-mobile { font-size: 20px !important; font-weight: bold !important; color: #222 !important; margin: 0 0 10px 0 !important; text-align: center !important; width: 100% !important; }
    .f4l-sm-loc-stars-mobile { font-size: 22px !important; text-align: center !important; width: 100% !important; margin-bottom: 20px !important; letter-spacing: 3px !important; }

    html body .f4l-secret-main-wrap .f4l-strict-col-1, html body .f4l-secret-main-wrap .f4l-strict-col-2, html body .f4l-secret-main-wrap .f4l-strict-col-3, html body .f4l-secret-main-wrap .f4l-strict-col-4 { width: 100% !important; max-width: 100% !important; padding: 0 !important; text-align: left !important; }
    .f4l-sm-col-desc p { margin-bottom: 20px !important; }
    .f4l-sm-col-nuance { margin-bottom: 25px !important; }
    html body .f4l-secret-main-wrap .f4l-strict-col-4 { justify-content: center !important; }
    .f4l-btn-gps { width: 80% !important; max-width: 300px !important; text-align: center !important; margin: 0 auto !important; }

    /* ПАНЕЛЬ УПРАВЛЕНИЯ НА МОБИЛЬНЫХ */
    .f4l-panel-wrap { padding: 30px 20px !important; }
    html body .f4l-panel-wrap .f4l-panel-row { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 15px !important; }
    html body .f4l-panel-wrap .f4l-row-code { margin-top: 15px !important; }
    html body .f4l-panel-wrap .f4l-panel-col-1, html body .f4l-panel-wrap .f4l-panel-col-2, html body .f4l-panel-wrap .f4l-panel-col-3 { width: 100% !important; padding-bottom: 0 !important; }
    html body .f4l-panel-wrap .f4l-panel-col-2 { display: flex !important; flex-direction: column !important; gap: 15px !important; align-items: stretch !important; }
    .f4l-sm-input-block { width: 100% !important; }
}




/* ==========================================================
   СТИЛИ ДЛЯ НЕАКТИВНОЙ КНОПКИ (ЕСЛИ ЛОКАЦИИ ЕЩЕ НЕ ДОБАВЛЕНЫ)
   ========================================================== */
.f4l-btn-disabled,
html body .f4l-panel-wrap button.f4l-btn-disabled,
html body .f4l-panel-wrap button.f4l-btn-disabled:hover {
    background-color: #d1d5db !important;
    color: #8c939d !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    border: 1px solid #d1d5db !important;
}


