/* Публичные страницы: линия маршрута, прайс и профили. */
.botanical {
    background:
        linear-gradient(#1d1b1800 45%, #1d1b1820),
        url('../images/botanical-copper.png') center bottom / 100% auto no-repeat;
}
.public-page {
    padding: 40px var(--space) 34px;
    min-height: 70vh;
}
.page-heading {
    margin-bottom: 36px;
}
.page-heading p {
    color: var(--taupe);
    margin-top: 14px;
}
.catalog-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin: 20px 0 40px;
}
.catalog-heading h1 {
    font-size: clamp(42px, 5.3vw, 80px);
}
.catalog-heading .eyebrow {
    margin-top: 22px;
    color: var(--cream);
}
.heading-image {
    display: flex;
    align-items: center;
    gap: 28px;
}
.heading-image p {
    font: 23px/1.25 var(--serif);
    color: var(--taupe);
    min-width: 160px;
}
.circle-photo {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 2px solid var(--copper);
    padding: 4px;
    object-fit: cover;
}
.route-dot {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-block;
    border-radius: 50%;
    border: 2px solid #b4a393;
    background: var(--graphite);
}
.selected > .route-dot,
.route-dot.selected,
.chosen > .route-dot {
    border-color: var(--cream);
    outline: 2px solid var(--copper);
    outline-offset: 3px;
    background: var(--copper);
    box-shadow: 0 0 18px #e8ab7b90;
}
.route-home {
    position: relative;
    min-height: 690px;
    height: calc(100svh - 160px);
    max-height: 920px;
    padding: 48px var(--space) 32px;
}
.home-kicker {
    font-size: 10px;
    letter-spacing: 0.35em;
    margin-bottom: 28px;
}
.route-home h1 {
    font-size: clamp(56px, 5.8vw, 92px);
    max-width: 500px;
    position: relative;
    z-index: 1;
}
.home-route {
    position: absolute;
    top: 160px;
    left: 0;
    width: 100%;
    height: 410px;
    fill: none;
    pointer-events: none;
}
.route-active {
    stroke: #eeaf7e;
    stroke-width: 1.8;
    filter: drop-shadow(0 0 4px #ea853a88);
}
.route-secondary {
    stroke: #9f8c78;
    stroke-width: 1.4;
}
.route-picker {
    position: absolute;
    left: 27%;
    top: 333px;
    display: flex;
    flex-direction: column;
    gap: 34px;
    z-index: 2;
    /* На телефоне карточка находится под промежутками списка: они не должны перехватывать нажатия. */
    pointer-events: none;
}
.route-choice {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 22px;
    background: none;
    border: 0;
    font: 29px var(--serif);
    min-height: 44px;
    padding: 0;
    text-align: left;
}
.route-choice.selected {
    color: var(--cream);
}
.route-choice:not(.selected) {
    color: var(--taupe);
}
.route-preview {
    position: absolute;
    left: 55%;
    right: 5%;
    top: 27%;
    display: flex;
    align-items: center;
    gap: 32px;
}
.route-preview .circle-photo {
    width: clamp(130px, 14vw, 230px);
    height: clamp(130px, 14vw, 230px);
    flex-shrink: 0;
}
.route-preview h2 {
    font-size: clamp(35px, 3.7vw, 58px);
}
.route-preview .eyebrow {
    font-size: 11px;
    margin: 18px 0;
    color: var(--cream);
    letter-spacing: 0.13em;
    max-width: 240px;
}
.route-preview .button {
    min-height: 42px;
    padding: 7px 24px;
    color: var(--cream);
    border-color: var(--cream);
}
.route-hint {
    position: absolute;
    top: 390px;
    font-size: 13px;
    color: var(--taupe);
}
.route-bottom {
    display: flex;
    gap: 32px;
    align-items: center;
    position: absolute;
    bottom: 32px;
    left: var(--space);
    right: var(--space);
}
.route-bottom > .text-link {
    margin-left: auto;
    font-size: 12px;
    padding-bottom: 3px;
    border-color: var(--taupe);
}
.route-legend {
    display: flex;
    gap: 13px;
    align-items: center;
    font-size: 11px;
}
.route-legend .route-dot {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
}
.legend-line {
    display: block;
    width: 35px;
    height: 1px;
    background: var(--line);
}
.catalog-tools {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 34px;
    justify-content: space-between;
}
.direction-tabs {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    min-width: 50%;
}
.direction-tabs::before {
    content: '';
    height: 1px;
    left: -70px;
    right: 0;
    top: 19px;
    position: absolute;
    background: var(--copper);
}
.direction-tabs button {
    border: 0;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    font: 20px var(--serif);
    position: relative;
}
.search-field {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--taupe);
    border-radius: 999px;
    padding: 0 17px;
    margin: 0;
    min-width: 220px;
}
.search-field input {
    border: 0;
    background: none;
    min-height: 44px;
    padding: 10px 0;
    font-size: 13px;
}
.search-field input:focus-visible {
    outline: 0;
}
.search-field:focus-within {
    outline: 2px solid var(--copper);
    outline-offset: 3px;
}
.price-category-title {
    font: 11px var(--sans);
    color: var(--taupe);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 26px 0 16px;
}
.price-row {
    display: grid;
    grid-template-columns: 35px minmax(140px, 1.2fr) minmax(100px, 1fr) 140px 120px 42px;
    align-items: center;
    gap: 22px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
}
.price-row:last-child {
    border-bottom: 1px solid var(--line);
}
.price-row h3 {
    font-size: 27px;
    line-height: 1.16;
}
.price-row p,
.duration,
.row-number {
    font-size: 13px;
    color: var(--taupe);
}
.duration {
    display: flex;
    gap: 10px;
    align-items: center;
}
.price-row strong {
    font: 25px var(--serif);
    white-space: nowrap;
}
.round-link {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--copper);
    border-radius: 50%;
    color: var(--copper);
}
.price-row:hover .round-link {
    color: var(--graphite);
    background: var(--copper);
}
.help-band {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
    margin-top: 54px;
    padding: 28px 0 42px;
}
.help-band h2 {
    font-size: 34px;
}
.help-band p {
    margin-top: 13px;
    color: var(--taupe);
    max-width: 540px;
}
.help-band > div > svg {
    float: left;
    width: 42px;
    height: 42px;
    margin: 3px 25px 30px 0;
    color: var(--copper);
}
.filter-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.filter-pills button {
    padding: 10px 24px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 999px;
    font-size: 13px;
}
.filter-pills .selected {
    border-color: var(--copper);
}
.specialists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 42px;
    padding: 24px 0 60px;
    position: relative;
}
.specialists-grid::before {
    content: '';
    position: absolute;
    top: 140px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--copper), transparent);
    pointer-events: none;
}
.specialist-card {
    text-align: center;
    position: relative;
}
.specialist-portrait {
    display: grid;
    place-items: center;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    border: 2px solid var(--copper);
    padding: 5px;
    margin: 0 auto 22px;
    background: var(--espresso);
    font: 60px var(--serif);
}
.specialist-portrait img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-position: center 30%;
}
.specialist-card h2 {
    font-size: 34px;
    max-width: 340px;
    margin: auto;
}
.specialist-card .eyebrow {
    margin: 14px 0 8px;
    font-size: 11px;
}
.specialist-direction {
    font: 25px var(--serif);
    margin: 20px 0;
}
.demo-label {
    color: var(--taupe);
    font-size: 10px;
    display: block;
}
.card-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}
.card-actions .button {
    font-size: 13px;
    min-height: 44px;
    padding: 10px 22px;
}
.detail-page > .text-link,
.profile-page > .text-link {
    font-size: 13px;
    margin-bottom: 30px;
}
.detail-hero {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 30%;
    gap: 38px;
    align-items: center;
    padding: 20px 0 50px;
}
.detail-hero h1 {
    font-size: clamp(44px, 5.2vw, 78px);
    margin: 14px 0;
    overflow-wrap: anywhere;
}
.detail-route {
    display: flex;
    flex-direction: column;
    gap: 36px;
    border-left: 1px solid var(--copper);
    padding-left: 24px;
    font-size: 13px;
}
.detail-route a {
    position: relative;
}
.detail-route a::before {
    content: '';
    width: 12px;
    height: 12px;
    border: 1px solid var(--copper);
    border-radius: 50%;
    background: var(--graphite);
    position: absolute;
    left: -31px;
    top: 4px;
}
.detail-route .active {
    color: var(--copper);
}
.detail-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
}
.serif-lead {
    font: 25px/1.4 var(--serif);
    color: var(--taupe);
}
.visit-meta {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 26px 0;
}
.visit-meta > span {
    display: flex;
    align-items: center;
    gap: 12px;
}
.visit-meta > strong {
    font: 29px var(--serif);
    padding-left: 25px;
    border-left: 1px solid var(--line);
}
.visit-meta svg {
    color: var(--copper);
}
.visit-section {
    border-top: 1px solid var(--line);
    padding: 30px 0;
    scroll-margin-top: 25px;
}
.visit-section > h2 {
    font-size: 36px;
    margin-bottom: 26px;
}
.visit-timeline {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0;
    gap: 45px;
    margin: 0 0 34px;
}
.visit-timeline li {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}
.visit-timeline li > span {
    width: 38px;
    height: 38px;
    border: 1px solid var(--copper);
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.visit-timeline h3 {
    font-size: 24px;
    margin-bottom: 10px;
}
.visit-timeline p {
    font-size: 14px;
    color: var(--taupe);
    max-width: 250px;
}
.detail-accordions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}
.detail-accordions details {
    border: 1px solid var(--line);
    padding: 22px;
    border-radius: var(--radius);
    background: var(--surface);
}
.detail-accordions summary {
    font: 25px var(--serif);
}
.detail-accordions p {
    font-size: 14px;
    margin-top: 20px;
    color: var(--taupe);
}
.mini-specialists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.mini-specialist {
    display: flex;
    gap: 24px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}
.mini-specialist img {
    width: 36%;
    height: 180px;
}
.mini-specialist h3 {
    font-size: 25px;
}
.mini-specialist small {
    display: block;
    color: var(--taupe);
    margin: 8px 0;
}
.mini-specialist .button {
    font-size: 12px;
    padding: 6px 22px;
    min-height: 32px;
    margin-top: 6px;
}
.detail-book-bar {
    display: flex;
    align-items: center;
    gap: 25px;
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 20px 24px;
    border-radius: 12px;
}
.detail-book-bar strong {
    font: 28px var(--serif);
    white-space: nowrap;
}
.detail-book-bar .button {
    margin-left: auto;
}
.profile-hero {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 50px;
    padding: 10px 0 40px;
    align-items: center;
}
.profile-portrait {
    background: var(--espresso);
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4/5;
    display: grid;
    place-items: center;
    font: 80px var(--serif);
}
.profile-portrait img {
    width: 100%;
    height: 100%;
}
.profile-copy h1 {
    font-size: clamp(46px, 5.5vw, 82px);
}
.profile-copy > .eyebrow {
    margin: 22px 0 30px;
}
.profile-copy h2 {
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 22px;
}
.profile-copy > p:not(.eyebrow) {
    color: var(--taupe);
    line-height: 1.8;
}
.profile-copy .demo-label {
    margin-top: 16px;
}
.profile-route {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid var(--copper);
    display: flex;
    gap: 45px;
    font: 22px var(--serif);
}
.profile-booking {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    border-top: 1px solid var(--line);
    padding: 35px 0;
}
.profile-booking h2 {
    font-size: 32px;
    margin-bottom: 24px;
}
.profile-booking .choice-list {
    max-height: 450px;
    overflow-y: auto;
    padding: 5px;
}
@media (max-width: 1100px) {
    .heading-image p {
        display: none;
    }
    .price-row {
        grid-template-columns: 25px minmax(140px, 1fr) minmax(70px, 0.7fr) 110px 100px 38px;
        gap: 15px;
    }
    .price-row h3 {
        font-size: 23px;
    }
    .price-row strong {
        font-size: 22px;
    }
    .route-preview {
        gap: 18px;
        left: 53%;
    }
    .route-preview h2 {
        font-size: 38px;
    }
    .detail-hero {
        grid-template-columns: 110px 1fr 27%;
        gap: 25px;
    }
}
@media (max-width: 760px) {
    .public-page {
        padding: 25px 22px 28px;
    }
    .catalog-heading {
        margin: 0 0 28px;
        display: block;
    }
    .catalog-heading h1 {
        font-size: 44px;
        max-width: 380px;
    }
    .catalog-heading .eyebrow {
        font-size: 10px;
        margin-top: 16px;
    }
    .heading-image {
        display: none;
    }
    .botanical {
        background-size: auto 550px;
    }
    .route-home {
        min-height: 690px;
        height: calc(100svh - 130px);
        max-height: none;
        padding: 30px 24px;
    }
    .home-kicker {
        display: none;
    }
    .route-home h1 {
        font-size: 48px;
        max-width: 320px;
        line-height: 1.03;
    }
    .home-route {
        display: none;
    }
    .route-home::before {
        content: '';
        position: absolute;
        left: 32px;
        top: 170px;
        bottom: 100px;
        border-left: 1px solid var(--copper);
    }
    .route-picker {
        left: 24px;
        top: 205px;
        gap: 220px;
    }
    .route-choice {
        font-size: 26px;
        gap: 22px;
    }
    .route-choice:last-child {
        margin-top: -204px;
    }
    .route-preview {
        top: 190px;
        left: 67px;
        right: 24px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .route-preview .circle-photo {
        align-self: flex-end;
        width: 130px;
        height: 130px;
    }
    .route-preview h2 {
        font-size: 31px;
    }
    .route-preview .eyebrow {
        font-size: 9px;
        margin: 11px 0;
        line-height: 1.7;
        max-width: 250px;
    }
    .route-preview .button {
        min-height: 36px;
        padding: 6px 23px;
        font-size: 13px;
    }
    .route-hint {
        top: auto;
        bottom: 36px;
        left: 55px;
        font-size: 11px;
    }
    .route-bottom {
        display: none;
    }
    .catalog-tools {
        display: block;
        margin-bottom: 16px;
    }
    .direction-tabs {
        gap: 0;
        min-width: 0;
        margin-bottom: 18px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: var(--surface);
        justify-content: stretch;
        overflow: hidden;
    }
    .direction-tabs::before,
    .direction-tabs .route-dot {
        display: none;
    }
    .direction-tabs button {
        font: 12px var(--sans);
        padding: 12px 10px;
        flex: 1;
        min-height: 44px;
    }
    .direction-tabs .selected {
        background: var(--copper);
        color: var(--graphite);
        border-radius: 999px;
    }
    .search-field {
        min-width: 0;
        width: 100%;
    }
    .price-category-title {
        font-size: 10px;
        padding-top: 22px;
        letter-spacing: 0.1em;
    }
    .price-row {
        grid-template-columns: 1fr auto 40px;
        gap: 8px 12px;
        padding: 22px 0;
    }
    .price-row h3 {
        grid-column: 1/3;
        grid-row: 1;
        font-size: 25px;
    }
    .price-row p {
        grid-column: 1/3;
        grid-row: 2;
        font-size: 12px;
    }
    .price-row .duration {
        grid-column: 1;
        grid-row: 3;
        font-size: 12px;
    }
    .price-row strong {
        grid-column: 2;
        grid-row: 3;
        font-size: 20px;
        color: var(--copper);
    }
    .price-row .round-link {
        grid-column: 3;
        grid-row: 1/4;
        width: 38px;
        height: 38px;
    }
    .row-number {
        display: none;
    }
    .help-band {
        display: block;
        padding: 28px 0;
        margin-top: 20px;
    }
    .help-band .button {
        margin-top: 25px;
        width: 100%;
    }
    .help-band h2 {
        font-size: 30px;
    }
    .help-band p {
        font-size: 14px;
    }
    .filter-pills {
        margin-top: 26px;
    }
    .filter-pills button {
        flex: 1;
        padding: 10px 14px;
    }
    .specialists-grid {
        display: block;
        padding: 0;
    }
    .specialists-grid::before {
        top: 0;
        bottom: 0;
        left: 6px;
        right: auto;
        width: 1px;
        height: auto;
        background: var(--copper);
    }
    .specialist-card {
        padding: 20px 0 35px 20px;
        border-bottom: 1px solid var(--line);
        margin-bottom: 25px;
    }
    .specialist-portrait {
        width: 200px;
        height: 200px;
    }
    .specialist-card h2 {
        font-size: 31px;
    }
    .card-actions {
        flex-wrap: nowrap;
        gap: 8px;
    }
    .card-actions .button {
        padding: 10px 14px;
        font-size: 12px;
        gap: 8px;
    }
    .detail-hero {
        display: flex;
        flex-direction: column;
        padding: 0 0 30px;
        gap: 22px;
    }
    .detail-route {
        display: none;
    }
    .detail-hero h1 {
        font-size: 46px;
    }
    .detail-photo {
        width: 180px;
        height: 180px;
        order: -1;
        align-self: center;
    }
    .serif-lead {
        font-size: 22px;
    }
    .visit-meta {
        gap: 20px;
        font-size: 14px;
    }
    .visit-meta > strong {
        font-size: 25px;
        padding-left: 18px;
    }
    .detail-hero .button {
        width: 100%;
    }
    .visit-timeline {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .visit-timeline li {
        position: relative;
    }
    .visit-timeline li:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 19px;
        top: 38px;
        bottom: -25px;
        width: 1px;
        background: var(--copper);
    }
    .detail-accordions,
    .mini-specialists {
        grid-template-columns: 1fr;
    }
    .mini-specialist {
        gap: 18px;
    }
    .mini-specialist h3 {
        font-size: 23px;
    }
    .detail-book-bar {
        flex-wrap: wrap;
        gap: 12px;
        padding: 20px;
    }
    .detail-book-bar .button {
        width: 100%;
    }
    .detail-book-bar > span {
        font-size: 14px;
    }
    .profile-hero {
        display: flex;
        flex-direction: column;
        gap: 26px;
    }
    .profile-portrait {
        width: 100%;
    }
    .profile-copy h1 {
        font-size: 48px;
    }
    .profile-copy h2 {
        font-size: 28px;
    }
    .profile-copy > p:not(.eyebrow) {
        font-size: 14px;
    }
    .profile-route {
        font-size: 20px;
        gap: 30px;
    }
    .profile-booking {
        display: block;
        padding: 26px 0;
    }
    .profile-booking > section + section {
        margin-top: 38px;
    }
    .visit-section > h2 {
        font-size: 31px;
    }
}
@media (max-width: 360px) {
    .route-home h1 {
        font-size: 43px;
    }
    .route-preview .circle-photo {
        width: 108px;
        height: 108px;
    }
    .route-preview {
        top: 200px;
    }
    .route-preview h2 {
        font-size: 28px;
    }
    .direction-tabs button {
        padding: 12px 6px;
        font-size: 11px;
    }
    .card-actions .button {
        padding: 10px;
    }
}
/* Листья остаются нижним фоном и не спорят с текстом маршрута. */
.route-home {
    background: none;
    isolation: isolate;
}
.route-home::after {
    content: '';
    position: absolute;
    z-index: -1;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48%;
    background: url('../images/botanical-copper.png') center bottom / 100% auto no-repeat;
    mask-image: linear-gradient(transparent, #000 65%);
}
h1[tabindex='-1']:focus {
    outline: none;
}
@media (max-width: 760px) {
    .route-home::after {
        height: 40%;
        background-size: auto 550px;
    }
}
.profile-booking .choice-list {
    max-height: 430px;
    overflow-y: auto;
    padding: 5px;
    scrollbar-width: thin;
}
@media (max-width: 760px) {
    .detail-hero #procedure-about {
        display: contents;
    }
    .detail-hero #procedure-about .eyebrow {
        order: -3;
    }
    .detail-hero #procedure-about h1 {
        order: -2;
    }
    .detail-hero {
        align-items: stretch;
    }
}
