/* ===== СТАТИЧЕСКАЯ СТРАНИЦА ===== */
.static-page {
    padding: 4rem 0;
    background: linear-gradient(135deg, #fef3c7 0%, #fce7f3 50%, #e0e7ff 100%);
    min-height: 100vh;
}

/*.static-content {*/
/*    background: white;*/
/*    border-radius: 24px;*/
/*    padding: 3rem;*/
/*    box-shadow: var(--shadow-card);*/
/*    animation: fadeIn 0.8s ease-out;*/
/*}*/

/* Заголовки */
.static-content h1 {
    font-family: var(--font-montserrat);
    font-weight: 800;
    color: #000000;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
    background: linear-gradient(135deg, #fb923c 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.static-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-sunset);
    border-radius: 2px;
}

.static-content h2 {
    font-family: var(--font-montserrat);
    font-weight: 700;
    color: #1e293b;
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.static-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 30px;
    background: var(--gradient-purple);
    border-radius: 3px;
}

.static-content h3 {
    font-family: var(--font-montserrat);
    font-weight: 600;
    color: #334155;
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

/* Текст */
.static-content p {
    font-family: var(--font-montserrat);
    font-weight: 400;
    color: #475569;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.static-content strong {
    /*font-weight: 700;*/
    /*color: #1e293b;*/
    /*background: linear-gradient(120deg, #fbbf24 0%, #fbbf24 100%);*/
    background-repeat: no-repeat;
    background-size: 100% 0.2em;
    background-position: 0 88%;
}

.static-content em {
    font-style: italic;
    color: #7c3aed;
}

/* Списки */
.static-content ul,
.static-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.static-content li {
    font-family: var(--font-montserrat);
    font-weight: 400;
    color: #475569;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
    position: relative;
}

.static-content ul li::before {
    content: '✦';
    position: absolute;
    left: -1.5rem;
    color: #fb923c;
    font-size: 1rem;
}

.static-content ol {
    counter-reset: item;
}

.static-content ol li {
    counter-increment: item;
}

.static-content ol li::before {
    content: counter(item) '.';
    position: absolute;
    left: -1.5rem;
    color: #667EEA;
    font-weight: 700;
}

/* Ссылки */
.static-content a {
    color: #667EEA;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.static-content a:hover {
    color: #7c3aed;
    border-bottom: 2px solid #7c3aed;
}

/* Цитаты */
.static-content blockquote {
    border-left: 4px solid var(--gradient-purple);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 0 12px 12px 0;
    position: relative;
    overflow: hidden;
}

.static-content blockquote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 10px;
    font-size: 5rem;
    color: rgba(102, 126, 234, 0.1);
    font-family: Georgia, serif;
}

.static-content blockquote p {
    font-style: italic;
    color: #4f46e5;
    font-weight: 500;
    margin: 0;
}

/* Картинки */
.static-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.static-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* ===== ТАБЛИЦЫ ===== */
.static-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: white;
    border: 2px dashed #e2e8f0;
}

.static-content table thead {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
}

.static-content table thead th {
    font-family: var(--font-montserrat);
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.3);
}

.static-content table tbody tr {
    border-bottom: 1px dashed #e2e8f0;
    transition: all 0.3s ease;
}

.static-content table tbody tr:nth-child(even) {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.5) 0%, rgba(241, 245, 249, 0.5) 100%);
}

.static-content table tbody tr:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(251, 146, 60, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251, 146, 60, 0.15);
}

.static-content table tbody td {
    font-family: var(--font-montserrat);
    font-weight: 400;
    color: #475569;
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
    border-left: 1px dashed #e2e8f0;
}

.static-content table tbody td:first-child {
    border-left: none;
}

.static-content table tbody td strong {
    /*color: #1e293b;*/
    /*font-weight: 600;*/
}

/* Бейджи/метки в таблицах */
.table-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--gradient-sunset);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 10px rgba(251, 146, 60, 0.3);
}

/* Код/преформатированный текст */
.static-content pre,
.static-content code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px dashed #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.static-content code {
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    border: 1px dashed #475569;
}

/* Разделители */
.static-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gradient-sunset), transparent);
    margin: 3rem 0;
    position: relative;
}

.static-content hr::after {
    content: '❖';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 0 1rem;
    color: #fb923c;
    font-size: 1.2rem;
}

/* Карточки в контенте */
.content-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    border: 2px dashed #cbd5e1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    border-color: #fb923c;
    box-shadow: 0 10px 40px rgba(251, 146, 60, 0.15);
}

.content-card-title {
    font-family: var(--font-montserrat);
    font-weight: 700;
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.content-card-title::before {
    content: '★';
    color: #fbbf24;
    font-size: 1.2rem;
}

/* Инфо-блоки */
.info-box {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 12px 12px 0;
}

.warning-box {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(251, 146, 60, 0.1) 100%);
    border-left: 4px solid #fb923c;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 12px 12px 0;
}

.success-box {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(22, 163, 74, 0.1) 100%);
    border-left: 4px solid #16a34a;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 12px 12px 0;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .static-page {
        padding: 2rem 0;
    }

    .static-content {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .static-content h1 {
        font-size: 2rem;
    }

    .static-content h2 {
        font-size: 1.5rem;
    }

    .static-content h3 {
        font-size: 1.25rem;
    }

    .static-content p,
    .static-content li {
        font-size: 1rem;
    }

    .static-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .static-content table thead th,
    .static-content table tbody td {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .content-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .static-content {
        padding: 1rem;
    }

    .static-content h1 {
        font-size: 1.75rem;
    }

    .static-content blockquote {
        padding: 1rem;
    }

    .static-content table thead th,
    .static-content table tbody td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Анимации для элементов статической страницы */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.static-content > * {
    animation: floatIn 0.6s ease-out forwards;
    opacity: 0;
}

.static-content > *:nth-child(1) { animation-delay: 0.1s; }
.static-content > *:nth-child(2) { animation-delay: 0.2s; }
.static-content > *:nth-child(3) { animation-delay: 0.3s; }
.static-content > *:nth-child(4) { animation-delay: 0.4s; }
.static-content > *:nth-child(5) { animation-delay: 0.5s; }
.static-content > *:nth-child(6) { animation-delay: 0.6s; }

/* Эффект свечения для важных элементов */
.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-purple);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-effect:hover::after {
    opacity: 0.3;
    animation: glowPulse 2s infinite;
}

/* Кнопки в контенте */
.content-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-sunset);
    color: white;
    border-radius: 50px 0 50px 50px;
    font-family: var(--font-montserrat);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 146, 60, 0.3);
    border: none;
    cursor: pointer;
    margin: 0.5rem;
}

.content-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(251, 146, 60, 0.4);
}



/* 1. Превращаем таблицу в сетку (Grid) */
.static-content table {
    display: block;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.static-content table tbody {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Карточки в ряд */
    gap: 20px;
    width: 100%;
}

/* 2. Сама карточка (строка TR) */
.static-content table tr {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 45px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    border: 2px dashed #d1d1d6;
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 100%;
}

.static-content table tr:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
}

/* 3. Ячейки (TD) — убираем табличные границы и отступы */
.static-content table td {
    display: block !important;
    padding: 12px 20px !important;
    border: none !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* 4. ФОТО (убираем лишние отступы от редактора) */
.static-content td img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    margin: 0 !important; /* Убирает то самое пустое место сверху */
    display: block !important;
    border-radius: 0 !important; /* Картинка плотно к краям */
}

/* Первая ячейка с фото и названием не должна иметь лишних паддингов сверху */
.static-content table td:first-child {
    padding: 0 0 10px 0 !important;
}

/* 5. Убираем лишние теги P и BR, которые создает редактор */
.static-content td p {
    margin: 0 !important;
    padding: 0 !important;
}

.static-content td br {
    display: none !important;
}

/* 6. Название отеля */
.static-content td strong a {
    display: block;
    padding: 10px 20px 0;
    font-size: 1.1rem;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.4;
}

/* 7. Информация о питании (вторая ячейка) */
.static-content td:nth-child(2) {
    font-size: 0.9rem;
    color: #64748b;
    padding-top: 0 !important;
}

/* 8. Цена (третья ячейка) */
.static-content td:nth-child(3) {
    margin-top: auto; /* Прижимает цену вниз */
    padding-bottom: 20px !important;
    font-size: 1.4rem;
    color: #7c3aed; /* Фиолетовый акцент на цене */
    font-weight: 800;
    text-align: right;
}

/* Адаптив для мобильных */
@media (max-width: 480px) {
    .static-content table tbody {
        grid-template-columns: 1fr;
    }
}


.static-content table td:nth-child(3),
.static-content table td:nth-child(3) strong,
.static-content table td:nth-child(3) p {
    color: #7c3aed !important;
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    background: none !important;
}

.static-content table td:nth-child(3) {
    white-space: nowrap;
}



/*для рассрочки и индивидуалыных туров - контент*/
.installment-content {
    margin: 0 auto;
    font-family: var(--font-montserrat, 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif);
    background: white;
    border: 2px dashed #d1d5db;
    border-radius: 35px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s, box-shadow 0.3s;


}


.installment-content p strong:first-child,
.installment-content p strong:only-child {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
     margin-bottom: 0.5em;
}

.installment-content p strong {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}


.installment-content p:first-child strong {
    font-size: 2rem;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

/* ----- ПАРАГРАФЫ ----- */
.installment-content p {
    font-size: 1.125rem;

    margin-bottom: 1.8em;
    font-weight: 450;
}

/* ----- СПИСКИ ----- */
.installment-content ol,
.installment-content ul {
    margin: 1.8em 0 2.2em 0;
    padding-left: 0;
}

.installment-content li {
    font-size: 1.125rem;
       margin-bottom: 1em;
       position: relative;
    padding-left: 2.2em;
    list-style: none;
}

/* НУМЕРОВАННЫЙ СПИСОК — стильные цифры */
.installment-content ol {
    counter-reset: installment-counter;
}

.installment-content ol li {
    counter-increment: installment-counter;
}

.installment-content ol li::before {
    content: counter(installment-counter);
    position: absolute;
    left: 0;
    top: -0.1em;
    width: 1.8em;
    height: 1.8em;
    background: #eef2ff;
    color:  #5b21b6;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid  #5b21b6;
}

/* МАРКИРОВАННЫЙ СПИСОК — галочки */
.installment-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #059669;
    font-weight: 700;
    font-size: 1.3rem;
}

/* Жирный текст внутри списков */
.installment-content li strong {

    font-weight: 700;
}

/* ----- РАЗДЕЛИТЕЛИ МЕЖДУ СЕКЦИЯМИ ----- */
.installment-content p:has(strong) {

    position: relative;
}

.installment-content p:has(strong)::before {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background:  #5b21b6;
    border-radius: 2px;
    margin-bottom: 1em;
}

/* Первый заголовок без разделителя */
.installment-content p:first-child::before {
    display: none;
}





/* Убираем лишний отступ у пустого параграфа */
.installment-content p:empty,
.installment-content br:only-child {
    display: none;
}

/* ----- АДАПТИВНОСТЬ ----- */
@media (max-width: 768px) {
    .installment-content {
        padding: 32px 24px;
        border-radius: 24px;
    }

    .installment-content p:first-child strong {
        font-size: 2rem;
    }

    .installment-content p strong {
        font-size: 1.35rem;
    }

    .installment-content p,
    .installment-content li {
        font-size: 1rem;
    }

    .installment-content ol li,
    .installment-content ul li {
        padding-left: 2.5em;
    }

    .installment-content p:has(strong):has(br) {
        padding: 1.5em;
    }

    .installment-content p:has(strong):has(br) strong {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .installment-content {
        padding: 24px 16px;
    }

    .installment-content p:first-child strong {
        font-size: 1.75rem;
    }

    .installment-content p strong {
        font-size: 1.25rem;
    }

    .installment-content ol li::before {
        width: 1.6em;
        height: 1.6em;
        font-size: 0.9rem;
        top: 0;
    }
}
