/* Стили для страницы Петры */
.petra-hero {
    display: none;
}

/* Jerash: hero как квадратная карточка с фото */
.petra-hero.jerash-hero {
    display: flex;
    height: auto;
    min-height: 0;
    padding: 100px 0 0;
    background: var(--white);
    color: var(--white);
}

.petra-hero.article-hero {
    display: flex;
    height: auto;
    min-height: 0;
    padding: 100px 0 0;
    background: var(--white);
    color: var(--white);
}

.petra-hero.article-hero::after {
    display: none;
}

.petra-hero.article-hero .container {
    height: auto;
}

.article-hero-card {
    position: relative;
    width: min(520px, 100%);
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: none;
    margin: 0 auto;
}

.article-hero-card--collage {
    background: #f7fafc;
}

.article-hero-collage {
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    padding: 12px;
    background: var(--white);
}

.article-hero-collage-tile {
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: transform 0.4s ease;
}

@media (hover: hover) {
    .article-hero-collage-tile:hover {
        transform: scale(1.03);
        z-index: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .article-hero-collage-tile {
        transition: none;
    }

    .article-hero-collage-tile:hover {
        transform: none;
    }
}

.article-hero-card--collage .article-hero-collage-tile:nth-child(1) {
    border-top-left-radius: 24px;
}

.article-hero-card--collage .article-hero-collage-tile:nth-child(2) {
    border-top-right-radius: 24px;
}

.article-hero-card--collage .article-hero-collage-tile:nth-child(3) {
    border-bottom-left-radius: 24px;
}

.article-hero-card--collage .article-hero-collage-tile:nth-child(4) {
    border-bottom-right-radius: 24px;
}

.petra-hero.article-hero .hero-background {
    height: 100%;
    transform: none;
}

.petra-hero.article-hero .hero-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.18) 55%, rgba(0, 0, 0, 0.08) 100%);
}

.petra-hero.jerash-hero::after {
    display: none;
}

.petra-hero.jerash-hero .container {
    height: auto;
}

.jerash-hero-card {
    position: relative;
    width: min(520px, 100%);
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: none;
    margin: 0 auto;
}

.petra-hero.jerash-hero .hero-background {
    height: 100%;
    transform: none;
}

.petra-hero.jerash-hero .hero-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.18) 55%, rgba(0, 0, 0, 0.08) 100%);
}

.petra-hero.jerash-hero .hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    max-width: none;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.petra-hero.jerash-hero .hero-title {
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
}

.petra-hero.jerash-hero .hero-subtitle {
    max-width: 520px;
    margin-bottom: 0;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

/* Заголовок под hero (страницы экскурсий) */
.article-after-hero,
.jerash-after-hero {
    background: var(--white);
    padding: 2rem 0 0;
}

.article-after-hero-title,
.jerash-after-hero-title {
    margin: 0;
    text-align: center;
    color: var(--text-dark);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.article-after-hero-line,
.jerash-after-hero-line {
    display: block;
}

.article-after-hero-line--kicker,
.jerash-after-hero-line--kicker {
    font-size: clamp(18px, 4.8vw, 22px);
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.35rem;
}

.article-after-hero-line--main,
.jerash-after-hero-line--main {
    font-size: clamp(34px, 8.8vw, 44px);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.article-after-hero-line--sub,
.jerash-after-hero-line--sub {
    font-size: clamp(22px, 6vw, 28px);
    font-weight: 700;
    color: #2d3748;
}

.article-after-hero-subtitle,
.jerash-after-hero-subtitle {
    margin: 1rem auto 0;
    max-width: 560px;
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    color: #718096;
}

.article-after-hero-subtitle .article-hero-accent {
    color: #f9a825;
}

@media (min-width: 969px) {
    .petra-hero {
        display: flex;
        padding-top: 100px;
    }
}

.petra-hero .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.petra-hero-bg {
    background-image: url('images/PetraWall.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.holyplaces-hero-bg {
    background-image: url('images/holyPlaces images/HolyPlacesWall.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.holyplaces-hero-bg-2 {
    background-image: url('images/holyPlaces images/HolyPlaces2.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.holyplaces-hero-bg-3 {
    background-image: url('images/holyPlaces images/HolyPlaces3.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.holyplaces-hero-bg-4 {
    background-image: url('images/holyPlaces images/HolyPlaces4.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.jerash-hero-bg {
    background-image: url('images/JerashWall.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.wadirum-hero-bg {
    background-image: url('images/WadiRum images/WadiRumWall.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.wadirum-hero-bg-2 {
    background-image: url('images/WadiRum images/WadiRum2.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.wadirum-hero-bg-3 {
    background-image: url('images/WadiRum images/WadiRum3.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.wadirum-hero-bg-4 {
    background-image: url('images/WadiRum images/WadiRum4.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.aqaba-hero-bg {
    background-image: url('images/Aqaba images/AqabaWall.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.aqaba-hero-bg-2 {
    background-image: url('images/Aqaba images/Aqaba2.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.aqaba-hero-bg-3 {
    background-image: url('images/Aqaba images/Aqaba3.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.aqaba-hero-bg-4 {
    background-image: url('images/Aqaba images/Aqaba4.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.amman-hero-bg {
    background-image: url('images/Amman images/AmmanWall.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.amman-hero-bg-2 {
    background-image: url('images/Amman images/Amman2.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.amman-hero-bg-3 {
    background-image: url('images/Amman images/Amman3.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.amman-hero-bg-4 {
    background-image: url('images/Amman images/Amman4.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.deadsea-hero-bg {
    background-image: url('images/DeadSeaWall.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.petra-hero .hero-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Шум/зернистость на hero в статьях */
.petra-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
    z-index: 1.5;
}

.petra-hero .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    top: 0;
}

.petra-hero .hero-title {
    margin-bottom: 1.5rem;
    font-size: 36px;
    font-weight: 700;
    text-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.petra-hero .hero-title-prefix {
    font-size: 28px;
    font-weight: 400;
    opacity: 0.95;
    text-align: center;
    line-height: 1.2;
}

.petra-hero .hero-title-main {
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
}

.petra-hero .hero-title-suffix {
    font-size: 36px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

.petra-hero .hero-subtitle {
    max-width: 100%;
    margin: 0 auto;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    text-shadow: none;
}

/* Секция социальных сетей */
.petra-social-section {
    background: var(--white);
    padding: 1.5rem 0;
    display: none;
}

.petra-social-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 0;
}

.petra-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    padding-left: 0;
}

.petra-social-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

/* WhatsApp - приглушенный зеленый */
.petra-social-icon:nth-child(1) {
    background: #25D366;
}

/* Instagram - приглушенный градиент розово-фиолетовый */
.petra-social-icon:nth-child(2) {
    background: linear-gradient(135deg, #E4405F 0%, #C13584 50%, #833AB4 100%);
}

/* Telegram - приглушенный синий */
.petra-social-icon:nth-child(3) {
    background: #2AABEE;
}

/* Max Messenger - приглушенный градиент фиолетовый/синий */
.petra-social-icon:nth-child(4) {
    background: linear-gradient(135deg, #6C5CE7 0%, #5A4FCF 50%, #4834B8 100%);
}

.petra-social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0.9;
}

.petra-social-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
    fill: white;
}

.petra-social-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.petra-social-annotation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    padding-left: 0;
    width: 100%;
}

.petra-social-bubble {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(255, 179, 0, 0.3);
    transition: all 0.3s ease;
    font-family: var(--font-family);
    width: 100%;
    max-width: 100%;
    display: block;
}

.petra-social-bubble::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg) scaleY(-1);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid var(--primary-color);
}

.petra-social-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 179, 0, 0.4);
}

/* Статья про Петру */
.petra-article-section {
    background: var(--white);
    padding: 5rem 0;
}

/* Airbnb-подобная верхняя часть статьи (точечно, например jerash.html) */
.experience-article-section {
    background: var(--bg-light);
}

.experience-article-card.petra-article-content {
    max-width: 860px;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    padding: 1.25rem;
}

.experience-cover {
    border-radius: 20px;
    overflow: hidden;
    background: #e2e8f0;
    aspect-ratio: 1 / 1;
    margin-bottom: 1.25rem;
}

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

.experience-social-under-cover {
    display: block;
    background: var(--white);
    padding: 1.25rem 0 3rem 0;
    margin: 0;
}

.petra-article-section .experience-social-under-cover {
    background: transparent;
    padding: 0;
    margin: 1.25rem 0 3rem 0;
}

/* ПК: зазор подзаголовок → соцсети 3rem (все статьи экскурсий). На мобильных — прежние отступы секции 1.25rem + margin у блока соцсетей. */
@media (min-width: 769px) {
    .petra-article-section {
        padding-top: 3rem;
        padding-bottom: 5rem;
    }

    .petra-article-section .experience-social-under-cover {
        margin-top: 0;
    }
}

.experience-social-under-cover .petra-social-bubble {
    max-width: 100%;
}

.experience-article-card .petra-article-title {
    margin-bottom: 0.75rem;
}

.experience-article-card .petra-article-intro {
    margin-bottom: 2rem;
}

@media (min-width: 769px) {
    .experience-article-card.petra-article-content {
        padding: 2rem;
    }
}

.petra-article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.petra-article-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.petra-article-hero-subtitle {
    font-size: 18px;
    font-weight: 500;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.petra-article-subtitle-line {
    font-size: 17px;
    font-weight: 500;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.petra-article-h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.petra-article-intro {
    font-size: 16px;
    font-weight: 400;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 100%;
}

.petra-article-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.petra-article-text {
    font-size: 16px;
    font-weight: 400;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 100%;
}

.petra-article-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.petra-article-list li {
    font-size: 16px;
    font-weight: 400;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    position: relative;
}

.petra-article-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1;
}

.petra-article-accent {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Блоки статьи */
.petra-article-block {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin: 3rem 0;
    border: none;
}

.petra-article-block-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

/* Иконка над заголовком: смайлик по центру, заголовок по левому краю */
.petra-article-heading-with-icon {
    text-align: center;
    margin-bottom: 1rem;
}

.petra-article-heading-with-icon .petra-article-block-icon {
    display: block;
    text-align: center;
}

.petra-article-heading-with-icon .petra-article-subtitle {
    margin-top: 0;
    margin-bottom: 0;
    text-align: left;
}

.petra-article-block-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    margin-top: 3rem;
    line-height: 1.3;
    text-align: center;
}

.petra-article-block-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.petra-article-block-list li {
    font-size: 16px;
    font-weight: 400;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    padding-left: 0;
    position: relative;
}

.petra-article-block-list li::before {
    display: none;
}

.petra-article-icon-item {
    display: block;
    width: 100%;
}

.petra-article-inline-icon {
    font-size: 1.5rem;
    display: inline-block;
    vertical-align: top;
    line-height: 1.2;
    margin-right: 0.5rem;
    width: auto;
    text-align: left;
}

.petra-article-icon-item > strong {
    display: inline;
}

.petra-article-quote {
    font-size: 19px;
    font-style: normal;
    color: #4a5568;
    line-height: 1.7;
    margin: 2.5rem 0;
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    background: transparent;
    border-left: none;
    border-radius: 0;
    position: relative;
    text-align: left;
}

.petra-article-quote::before {
    display: none;
}

.petra-article-quote::after {
    display: none;
}

.petra-article-quote em {
    font-style: normal;
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.75rem;
}

.petra-article-quote strong {
    font-weight: 700;
    color: var(--secondary-color);
    font-style: normal;
}

.petra-article-triumph-block {
    text-align: left;
    margin: 2.5rem 0;
    background: #FFF8E1;
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

.petra-article-triumph-block .petra-article-subtitle {
    text-align: left;
}

.petra-article-triumph-block .petra-article-text {
    text-align: left;
    max-width: 100%;
}

/* Совпадает с .reviews-cta-block / .reviews-cta-title / .reviews-cta-text / .reviews-cta-btn (index) */
.petra-article-cta {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem 1.5rem;
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
    max-width: 560px;
    font-family: inherit;
}

.petra-article-cta-heading {
    margin: 0 0 1rem 0;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-dark);
}

.petra-article-cta-text {
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.petra-article-cta-btn {
    display: inline-block;
    width: auto;
    padding: 1rem 2rem;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: normal;
    border: none;
    border-radius: 50px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 4px 12px rgba(255, 179, 0, 0.3);
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
}

/* как у .reviews-cta-btn: без усиления при hover */
.petra-article-cta-btn:hover,
.petra-article-cta-btn:active,
.petra-article-cta-btn:focus {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 179, 0, 0.3);
    outline: none;
}

/* Ссылка с теми же классами, что кнопка отзывов на главной (.btn .reviews-cta-btn) */
.petra-article-cta a.btn.reviews-cta-btn:visited {
    color: #fff;
}

/* Явно как у .reviews-cta-btn: иначе .btn даёт 1.1rem и может визуально казаться крупнее «Оставить отзыв» */
.petra-article-cta a.btn.btn-primary.reviews-cta-btn {
    font-size: 16px;
    font-weight: 500;
    padding: 1rem 2rem;
    letter-spacing: normal;
}

.petra-page {
    min-height: 100vh;
    padding-top: 0;
    padding-bottom: 4rem;
    background: var(--bg-light);
}

.petra-container {
    max-width: 1200px;
}

.petra-layout {
    display: flex;
    justify-content: center;
    gap: 3rem;
    align-items: start;
}


.petra-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    padding: 0 2.5rem;
}

.petra-subtitle-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.petra-icon {
    font-size: 1.5rem;
}

.petra-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.petra-description {
    margin-bottom: 2.5rem;
}

.petra-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.petra-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.petra-detail-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
}

.petra-detail-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.petra-detail-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
}

.petra-included-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.petra-included-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.check-icon {
    color: #28a745;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Сайдбар */
.petra-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.petra-booking-mobile {
    display: none;
}

.petra-booking-desktop {
    display: block;
}

.petra-widget {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .booking-widget {
        padding: 1.5rem;
    }

    .booking-widget .petra-widget-title {
        font-size: 21px;
    }

    .petra-social-section .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .petra-social-annotation {
        padding: 0;
        width: 100%;
    }

    .petra-form-group input,
    .petra-form-group select,
    .petra-form-group textarea {
        min-height: 48px;
        font-size: 16px;
    }

    .petra-form-group input::placeholder,
    .petra-form-group textarea::placeholder {
        font-size: 16px;
    }

    .petra-booking-btn {
        font-size: 18px;
        min-height: 48px;
    }

    .holyplaces-hero-bg,
    .holyplaces-hero-bg-2,
    .holyplaces-hero-bg-3,
    .holyplaces-hero-bg-4 {
        background-position: left center;
    }
}

/* Форма бронирования */
.booking-widget {
    background: linear-gradient(135deg, #FFB300 0%, #FFA500 30%, #FF9500 70%, #FF8C00 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.booking-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.booking-widget .petra-widget-title {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
}

.petra-booking-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.petra-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.petra-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    opacity: 0.95;
}

.petra-form-group input,
.petra-form-group select,
.petra-form-group textarea {
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    font-size: 16px;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text-dark);
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.petra-form-group input::placeholder,
.petra-form-group textarea::placeholder {
    font-size: 16px;
}

.petra-form-group input:focus,
.petra-form-group select:focus,
.petra-form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.2);
}

.petra-form-group select {
    cursor: pointer;
}

.petra-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-field-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 0.25rem;
    font-style: normal;
    display: block;
    line-height: 1.4;
    opacity: 0.8;
}

.petra-booking-btn {
    padding: 1rem;
    background: var(--text-dark);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    margin-top: 0.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 48px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.petra-booking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    background: #1a202c;
}

.petra-form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.petra-form-message.success {
    background: rgba(40, 167, 69, 0.2);
    color: var(--white);
    border: 1px solid rgba(40, 167, 69, 0.5);
    display: block;
}

.petra-form-message.error {
    background: rgba(220, 53, 69, 0.2);
    color: var(--white);
    border: 1px solid rgba(220, 53, 69, 0.5);
    display: block;
}

/* Подтверждение отправки формы на страницах экскурсий — как на главной */
@keyframes booking-message-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.booking-form-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    display: none;
}

.booking-form-message.success,
.booking-form-message.error {
    display: block;
    animation: booking-message-in 0.35s ease forwards;
}

.booking-form-message.success {
    background: #c6f6d5;
    color: #22543d;
}

.booking-form-message.error {
    background: #fed7d7;
    color: #742a2a;
}

.why-us-widget {
    /* Белый фон уже установлен */
}

.petra-widget-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.why-us-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.why-us-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.why-us-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--secondary-color);
}

.why-us-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.question-widget {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.question-widget .petra-widget-title {
    color: var(--white);
}

.petra-widget-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--white);
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.petra-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.petra-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.petra-contact-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--white);
}

.petra-contact-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.petra-contact-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.petra-contact-link:hover {
    opacity: 0.8;
}

.petra-contact-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--white);
    color: var(--primary-color);
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.petra-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Адаптивность */
@media (max-width: 968px) {
    .petra-social-section {
        display: block;
    }

    .petra-hero {
        height: 50vh;
        min-height: 350px;
        padding-top: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .petra-hero .container {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 20px;
    }

    .petra-hero .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        padding: 0;
        position: relative;
        top: 0;
        transform: none;
    }

    .petra-hero .hero-title {
        margin-bottom: 1rem;
        font-size: 32px;
        font-weight: 700;
        text-shadow: none;
        justify-content: center;
        gap: 0.4rem;
    }
    
    .petra-hero .hero-title-prefix {
        font-size: 22px;
        font-weight: 400;
        text-align: center;
    }
    
    .petra-hero .hero-title-main {
        font-size: 38px;
        font-weight: 700;
        text-transform: uppercase;
        text-align: center;
    }
    
    .petra-hero .hero-title-suffix {
        font-size: 28px;
        font-weight: 500;
        text-align: center;
    }

    .petra-hero .hero-subtitle {
        margin: 0;
        max-width: 100%;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.4;
        text-shadow: none;
    }

    .petra-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        display: flex;
        flex-direction: column;
    }
    
    .petra-layout > * {
        margin-left: 0;
        margin-right: 0;
    }

    .petra-booking-desktop {
        display: none;
    }

    .petra-booking-mobile {
        display: block;
        order: 1;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .petra-page {
        padding-top: 0;
        margin-top: 0;
    }


    .petra-sidebar {
        order: 3;
        display: flex;
        flex-direction: column;
    }

    .why-us-widget {
        order: 0;
    }

    .question-widget {
        order: 1;
    }
}

@media (max-width: 768px) {
    .booking-widget {
        padding: 1.5rem;
    }

    .booking-widget .petra-widget-title {
        font-size: 21px;
    }

    .petra-social-section .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .petra-social-annotation {
        padding: 0;
        width: 100%;
    }

    .petra-form-group input,
    .petra-form-group select,
    .petra-form-group textarea {
        min-height: 48px;
        font-size: 16px;
    }

    .petra-form-group input::placeholder,
    .petra-form-group textarea::placeholder {
        font-size: 16px;
    }

    .petra-booking-btn {
        font-size: 18px;
        min-height: 48px;
    }

    .petra-page {
        padding-top: 80px;
        padding-bottom: 2rem;
    }


    .petra-title {
        font-size: 1.75rem;
        padding: 0 1.5rem;
    }

    .petra-subtitle {
        font-size: 1.1rem;
    }

    .petra-widget {
        padding: 1.5rem;
    }

    .petra-article-section {
        padding: 1.25rem 0;
    }

    .petra-article-content {
        padding: 0 20px;
    }

    .petra-article-title {
        font-size: 22px;
    }

    .petra-article-subtitle {
        font-size: 17px;
    }

    .petra-article-intro,
    .petra-article-text,
    .petra-article-list li {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .petra-article-block-list li {
        line-height: 1.7;
    }
    
    .petra-article-block {
        padding: 0;
        margin: 2.5rem 0;
    }
    
    .petra-article-subtitle {
        margin-top: 2.5rem;
    }
    
    .petra-article-block-title {
        margin-top: 2.5rem;
    }

    .petra-article-block-icon {
        font-size: 2.5rem;
    }

    .petra-article-block-title {
        font-size: 18px;
    }

    .petra-article-block-list li {
        font-size: 15px;
    }
    
    .petra-article-quote {
        font-size: 17px;
        padding: 1.25rem 1.25rem 1.25rem 2rem;
    }

    .petra-article-cta {
        padding: 2rem 1.5rem;
    }

    .petra-article-cta-heading {
        font-size: 17px;
    }

    .petra-article-cta-btn {
        width: auto;
    }

    /* Нижний отступ для кнопки «Заказать» — не перекрывается панелью браузера на iPhone */
    .petra-article-section {
        padding-bottom: calc(2rem + 80px + env(safe-area-inset-bottom, 0px));
    }
}

/* На мобильных — больше места под блоком с формой заявки */
@media (max-width: 768px) {
    .petra-booking-section {
        padding-bottom: calc(4rem + 80px + env(safe-area-inset-bottom, 0px));
    }
}

/* Скрыть форму бронирования */
.petra-booking-section {
    display: block;
    padding: 3rem 0 4rem;
    margin-bottom: 2rem;
}

/* Современная форма бронирования */
.booking-widget-modern {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.booking-price-header {
    margin-bottom: 1.5rem;
}

.booking-best-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-align: center;
}

.booking-price-note {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.price-tag-icon {
    color: var(--primary-color);
    width: 24px;
    height: 24px;
}

.price-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-info-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    transition: color 0.3s;
}

.price-info-btn:hover {
    color: var(--primary-color);
}

.booking-tabs {
    display: flex;
    gap: 0;
    border: none;
    margin-bottom: 1.5rem;
    font-size: 16px;
    padding-bottom: 0.5rem;
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 179, 0, 0.8) 0,
        rgba(255, 179, 0, 0.8) 5px,
        transparent 5px,
        transparent 8px
    );
    background-position: 0 100%;
    background-size: 100% 2px;
    background-repeat: repeat-x;
}

.booking-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    font-size: 1em !important;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.booking-tab.active {
    color: var(--primary-color);
}

.booking-tab.active::after {
    content: none;
}

/* Форма внутри виджета — без отдельного серого фона (как было раньше) */
.booking-widget-modern .contact-form {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.booking-form-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.booking-form-content.hidden {
    display: none;
}

.booking-field-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: var(--white);
    min-height: 56px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
    position: relative;
}

.booking-field-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 179, 0, 0.2);
    outline: none;
}

.booking-field-icon {
    color: var(--text-light);
    flex-shrink: 0;
}

.booking-date-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-dark);
    background: transparent;
    cursor: pointer;
    min-height: 44px;
    position: relative;
}

.booking-date-input:invalid {
    color: #9ca3af;
}

.booking-date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    margin-left: auto;
}

.booking-date-input::-webkit-datetime-edit-text {
    color: var(--text-dark);
}

.booking-date-input::-webkit-datetime-edit-month-field,
.booking-date-input::-webkit-datetime-edit-day-field,
.booking-date-input::-webkit-datetime-edit-year-field {
    color: var(--text-dark);
}

.booking-date-input:invalid::-webkit-datetime-edit {
    color: #9ca3af;
}

.booking-date-input:invalid::-webkit-datetime-edit-text {
    color: #9ca3af;
}

.booking-date-input:invalid::-webkit-datetime-edit-month-field,
.booking-date-input:invalid::-webkit-datetime-edit-day-field,
.booking-date-input:invalid::-webkit-datetime-edit-year-field {
    color: #9ca3af;
}

.booking-people-inputs {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

.booking-select {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-dark);
    background: transparent;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 9L1 4h10z' fill='%234a5568'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 2rem;
    min-height: 44px;
}

.booking-submit-btn {
    width: 100%;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: normal;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 0.5rem;
}

.booking-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 179, 0, 0.4);
}

.lightning-icon {
    width: 20px;
    height: 20px;
}

.booking-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.booking-wishlist-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s;
}

.booking-wishlist-btn:hover {
    color: var(--primary-color);
}

.booking-wishlist-btn svg {
    width: 18px;
    height: 18px;
}

.booking-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.booking-views svg {
    width: 18px;
    height: 18px;
}

.views-count {
    font-weight: 500;
}

.booking-live-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #2d3748;
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.live-banner-icon {
    flex-shrink: 0;
}

.live-banner-text {
    flex: 1;
}

.live-banner-arrow {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.live-banner-arrow:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .booking-widget-modern {
        padding: 2.5rem 1.25rem 1.25rem 1.25rem;
        border-radius: 12px;
    }

    .booking-best-price {
        font-size: 1.3rem;
    }

    .price-amount {
        font-size: 1.75rem;
    }

    .booking-tabs {
        font-size: 14.4px;
    }

    .booking-tab {
        padding: 0.625rem 0.75rem;
    }

    .booking-submit-btn {
        font-size: 1.1rem;
        padding: 0.85rem 2rem;
    }
}

/* Футер в статьях — оранжевая полоска не выше заголовка «Контакты» (как на главной) */
body .footer-contacts {
    border-left: none;
}

body .footer-contacts::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25em;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
}
