/* Only loaded on /oreshek/ via template «Орешек». */

body.bft-oreshek-page .bft-v2-hero-shell,
body.bft-salute-page .bft-v2-hero-shell,
body.bft-vmf-page .bft-v2-hero-shell {
    display: none !important;
}

body.bft-salute-page .content-left > h1,
body.bft-vmf-page .content-left > h1,
body.bft-kids-page .content-left > h1,
body.bft-compact-hero-page .content-left > h1 {
    display: none;
}

body.bft-kids-page .bft-ore-hero__title,
body.bft-compact-hero-page .bft-ore-hero__title {
    white-space: normal;
}

body.bft-kids-page .bft-ore-hero,
body.bft-compact-hero-page .bft-ore-hero {
    min-height: 420px;
}

body.bft-compact-hero-page .bft-ore {
    margin-bottom: 22px;
}

body.bft-kids-page .bft-ore-hero__shade,
body.bft-compact-hero-page .bft-ore-hero__shade {
    background: linear-gradient(90deg, rgba(8, 20, 38, 0.42) 0%, rgba(8, 20, 38, 0.16) 48%, rgba(8, 20, 38, 0.06) 100%);
}

body.bft-salute-page .bft-ore-hero__title,
body.bft-salute-page .bft-ore-h2,
body.bft-vmf-page .bft-ore-hero__title,
body.bft-vmf-page .bft-ore-h2 {
    white-space: normal;
}

body.bft-salute-page .bft-ore-hero,
body.bft-vmf-page .bft-ore-hero {
    min-height: 420px;
}

body.bft-salute-page .bft-ore-hero__shade,
body.bft-vmf-page .bft-ore-hero__shade {
    background: linear-gradient(90deg, rgba(8, 20, 38, 0.58) 0%, rgba(8, 20, 38, 0.22) 48%, rgba(8, 20, 38, 0.08) 100%);
}

body.bft-salute-page .bft-ev-phones,
body.bft-vmf-page .bft-ev-phones {
    margin: 18px 0 0;
}

body.bft-oreshek-page .cruise {
    display: none !important;
}

body.bft-oreshek-page .main-content {
    padding-bottom: 0;
}

body.bft-oreshek-page .content-left1 {
    min-width: 0;
}

body.bft-oreshek-page .bft-ore-h2,
body.bft-oreshek-page .bft-ore-hero__title,
body.bft-oreshek-page .bft-ore-way h3,
body.bft-oreshek-page .bft-ore-box h3 {
    width: auto !important;
    max-width: none !important;
    white-space: nowrap;
    text-transform: none;
}

body.bft-petergof-page .bft-ore-hero__title,
body.bft-petergof-page .bft-ore-h2,
body.bft-petergof-page .bft-ore-way h3,
body.bft-petergof-page .bft-ore-box h3 {
    white-space: normal;
}

.bft-ore {
    display: grid;
    gap: 42px;
    color: #1d3a54;
    font-family: Inter, "Open Sans", Arial, sans-serif;
}

.bft-ore a {
    text-decoration: none;
}

.bft-ore-hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    border-radius: 22px;
    background: #10233a;
}

.bft-ore-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.bft-ore-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 20, 38, 0.82) 0%, rgba(8, 20, 38, 0.45) 52%, rgba(8, 20, 38, 0.18) 100%);
}

.bft-ore-hero__copy {
    position: relative;
    z-index: 1;
    max-width: 640px;
    padding: 36px 32px 32px;
    color: #fff;
}

.bft-ore-hero__kicker {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.bft-ore-hero__title {
    margin: 0 0 12px;
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.15;
}

.bft-ore-hero__lead {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}

.bft-ore-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.bft-ore-chips li {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 13px;
    font-weight: 700;
}

.bft-ore-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bft-ore-btn,
.bft-v2-page .main-content__text a.bft-ore-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    font: 800 14px/1 Inter, "Open Sans", Arial, sans-serif;
    cursor: pointer;
    text-decoration: none !important;
}

.bft-ore-btn--accent {
    background: #ff8a00;
    color: #fff !important;
}

.bft-ore-btn--accent:hover {
    background: #ff9d26;
    color: #fff !important;
}

.bft-ore-btn--ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.bft-ore-section {
    scroll-margin-top: calc(var(--bft-v2-header-offset, 80px) + 12px);
}

.bft-ore-h2 {
    margin: 0 0 18px;
    color: #10233a;
    font-size: 26px;
    font-weight: 800;
}

.bft-ore-lead {
    margin: -8px 0 18px;
    font-size: 15px;
    line-height: 1.55;
}

.bft-ore-ways {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bft-ore-way {
    padding: 22px 22px 20px;
    background: #fff;
    border: 1px solid #d7e4ee;
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(16, 42, 72, 0.07);
}

.bft-ore-way--private {
    background: linear-gradient(180deg, #fff 0%, #f4f8fc 100%);
}

.bft-ore-way__tag {
    margin: 0 0 8px;
    color: #1569a5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bft-ore-way h3 {
    position: relative;
    margin: 0 0 16px;
    padding: 0 0 14px;
    color: #10233a;
    font-size: 20px;
    font-weight: 800;
}

.bft-v2-page .main-content__text .bft-ore-way h3,
.bft-v2-page .main-content__text .bft-ore-box h3 {
    margin: 0 0 16px !important;
    padding: 0 0 14px !important;
    width: auto !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    white-space: normal;
}

.bft-ore-way h3::after,
.bft-ore-box h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #1569a5 0%, #48c2c5 100%);
}

.bft-ore-way p,
.bft-ore-way li {
    font-size: 15px;
    line-height: 1.5;
}

.bft-ore-way ul {
    margin: 14px 0 18px;
    padding: 0;
    list-style: none;
}

.bft-ore-way ul.bft-ore-check li {
    position: relative;
    margin: 0 0 10px;
    padding-left: 26px;
}

.bft-ore-way ul.bft-ore-check li::before,
.bft-ore-check li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a7ad4' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5 10-11'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.bft-ore-way ul.bft-ore-check li::after {
    content: none;
}

.bft-ore-link {
    color: #1569a5 !important;
    font-weight: 800;
}

.bft-ore-time {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: ore;
}

.bft-ore-time li {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 6px 16px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #d7e4ee;
    border-radius: 16px;
}

.bft-ore-time span {
    color: #1569a5;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bft-ore-time strong {
    grid-column: 2;
    color: #10233a;
    font-size: 16px;
}

.bft-ore-time p {
    grid-column: 2;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.bft-ore-prices {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.bft-ore-price {
    padding: 18px 16px;
    background: #fff;
    border: 1px solid #d7e4ee;
    border-radius: 18px;
}

.bft-ore-price p {
    margin: 0 0 8px;
    color: #5a6d7e;
    font-size: 13px;
    font-weight: 700;
}

.bft-ore-price strong {
    color: #10233a;
    font-size: 26px;
    font-weight: 800;
}

.bft-ore-price span {
    display: block;
    margin-top: 8px;
    color: #5a6d7e;
    font-size: 12px;
    line-height: 1.4;
}

.bft-ore-note {
    margin: 14px 0 0;
    color: #5a6d7e;
    font-size: 14px;
}

.bft-ore-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bft-ore-box {
    padding: 20px 22px;
    background: #f4f8fc;
    border-radius: 18px;
}

.bft-ore-box h3 {
    position: relative;
    margin: 0 0 16px;
    padding: 0 0 14px;
    color: #10233a;
    font-size: 16px;
    font-weight: 800;
}

.bft-ore-check,
.bft-ore-dash {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bft-ore-check li,
.bft-ore-dash li {
    position: relative;
    margin: 0 0 8px;
    padding-left: 18px;
    font-size: 14px;
    line-height: 1.45;
}

.bft-ore-check li::before,
.bft-ore-dash li::before {
    position: absolute;
    left: 0;
    top: 0;
}

.bft-ore-box .bft-ore-check li {
    padding-left: 26px;
}

.bft-ore-dash li::before { content: "–"; color: #8aa0b3; }

.bft-ore-schedule {
    padding: 20px 22px;
    background: #fff8ec;
    border: 1px solid #f1ddb6;
    border-radius: 18px;
}

.bft-ore-schedule p {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.55;
}

.bft-ore-schedule p:last-child { margin-bottom: 0; }

.bft-ore-gallery,
.main-content__text > .bft-ore-gallery {
    display: grid !important;
    float: none !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
}

.bft-ore-gallery__item {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    background: #eef3f8;
    aspect-ratio: 3 / 2;
}

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

.bft-ore-map {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 16px;
}

.bft-ore-map__text p {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.5;
}

.bft-ore-map__frame {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid #d7e4ee;
}

.bft-ore-map iframe {
    display: block;
    width: 100%;
    min-height: 280px;
    border: 0;
}

.bft-ore-ships {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.bft-ore-fleet,
.bft-ore-fleet .order {
    width: 100%;
}

body.bft-oreshek-page .bft-ore-fleet .order__wrap.d-flex,
body.bft-oreshek-page .bft-ore-fleet.bft-similar-ships .order__wrap.d-flex {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    margin-top: 0;
}

.bft-ore-fleet .order__wrap li {
    min-width: 0;
    margin: 0;
}

.bft-ore-ship {
    display: block;
    padding: 18px 18px 16px;
    background: #fff;
    border: 1px solid #d7e4ee;
    border-radius: 16px;
    color: inherit !important;
}

.bft-ore-ship:hover {
    border-color: #8fb8d2;
}

.bft-ore-ship__type {
    display: inline-block;
    margin-bottom: 8px;
    color: #1569a5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bft-ore-ship strong {
    display: block;
    color: #10233a;
    font-size: 17px;
}

.bft-ore-ship p {
    margin: 8px 0 0;
    color: #5a6d7e;
    font-size: 14px;
}

.bft-ore-more {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 14px 0 0;
}

.bft-ore-more a {
    color: #1569a5 !important;
    font-weight: 800;
}

.bft-ore .bft-faq {
    margin: 0;
}

.bft-ore-formwrap {
    padding: 22px;
    background: #fff;
    border: 1px solid #d7e4ee;
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(16, 42, 72, 0.07);
}

.bft-ore-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
}

.bft-ore-form label {
    display: grid;
    gap: 6px;
}

.bft-ore-form span {
    color: #5a6d7e;
    font-size: 12px;
    font-weight: 700;
}

.bft-ore-form input,
.bft-ore-form select,
.bft-ore-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #c5d6e4;
    border-radius: 12px;
    background: #f4f8fc;
    color: #10233a;
    font: 15px/1.3 Inter, "Open Sans", Arial, sans-serif;
    box-sizing: border-box;
}

.bft-ore-form textarea { min-height: 110px; resize: vertical; }

.bft-ore-form__full { grid-column: 1 / -1; }

.bft-ore-form__honey {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.bft-ore-form .bft-ore-btn {
    grid-column: 1 / -1;
    justify-self: start;
    min-width: 220px;
}

.bft-ore-form__tel {
    margin: 14px 0 0;
    font-size: 14px;
}

.bft-ore-form__tel a {
    color: #1569a5 !important;
    font-weight: 800;
}

.bft-ore-related {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bft-ore-related > a:not(.bft-ore-related__card) {
    padding: 12px 16px;
    background: #f4f8fc;
    border-radius: 999px;
    color: #143c69 !important;
    font-weight: 800;
}

.bft-ore-related__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    background: #fff;
    border: 1px solid #d7e4ee;
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(16, 42, 72, 0.07);
    color: inherit !important;
    font-weight: 400;
    text-decoration: none;
    transition: box-shadow 0.25s ease;
}

.bft-ore-related__card:hover {
    box-shadow: 0 16px 32px rgba(15, 58, 110, 0.14);
}

.bft-ore-related__media {
    display: block;
    overflow: hidden;
    background: #d7e3ee;
}

.bft-ore-related__media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
}

.bft-ore-related__card .bft-similar-card__media,
.bft-ore-related__card .bft-wide-gallery,
.bft-ore-related__card .bft-wide-gallery__main,
.bft-ore-related__card .bft-wide-gallery__track {
    display: block;
    width: 100%;
}

.bft-ore-related__card .bft-wide-gallery__main {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #d7e3ee;
    touch-action: pan-y;
}

.bft-ore-related__card .bft-wide-gallery__track {
    position: relative;
    height: 100%;
}

.bft-ore-related__card .bft-wide-gallery__slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.bft-ore-related__card .bft-wide-gallery__slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.bft-ore-related__card .bft-wide-gallery__slide img,
.bft-ore-related__card .bft-similar-card__media > img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
}

.bft-ore-related__card .bft-wide-gallery__nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    color: #1a2a3a;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.bft-ore-related__card .bft-wide-gallery__nav--prev { left: 10px; }
.bft-ore-related__card .bft-wide-gallery__nav--next { right: 10px; }

.bft-ore-related__card .bft-wide-gallery__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}

.bft-ore-related__card .bft-wide-gallery__dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.bft-ore-related__card .bft-wide-gallery__dot.is-active {
    background: #fff;
}

.bft-ore-related__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 16px 16px 18px;
    color: inherit !important;
    text-decoration: none !important;
}

.bft-ore-related__name {
    color: #143c69;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

.bft-ore-related__card:hover .bft-ore-related__name {
    color: #1569a5;
}

.bft-ore-related__text {
    margin: 8px 0 14px;
    color: #3a4a5a;
    font-size: 14px;
    line-height: 1.45;
}

.bft-ore-related__more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: auto;
    padding: 10px 16px;
    border-radius: 999px;
    background: #f3f7fb;
    color: #1569a5;
    font-size: 14px;
    font-weight: 700;
}

.bft-ore-related__card:hover .bft-ore-related__more {
    background: #1569a5;
    color: #fff;
}

@media (max-width: 900px) {
    .bft-ore-hero__title { font-size: 28px; }
    .bft-ore-ways,
    .bft-ore-split,
    .bft-ore-map,
    .bft-ore-ships,
    .bft-ore-fleet .order__wrap.d-flex,
    .bft-ore-form,
    .bft-ore-prices,
    .bft-ore-related {
        grid-template-columns: 1fr;
    }

    .bft-ore-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .bft-ore-time li {
        grid-template-columns: 1fr;
    }

    .bft-ore-time strong,
    .bft-ore-time p {
        grid-column: 1;
    }
}

@media (max-width: 640px) {
    .bft-ore-hero__copy { padding: 24px 18px; }
    .bft-ore-gallery { grid-template-columns: 1fr; }

    body.bft-oreshek-page .bft-ore-h2,
    body.bft-oreshek-page .bft-ore-hero__title,
    body.bft-oreshek-page .bft-ore-way h3,
    body.bft-oreshek-page .bft-ore-box h3 {
        white-space: normal;
    }
}
