section,
header {
    min-width: 0;
}

/* ============================================
   HEADER
   ============================================ */

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

/* ===================== */
/* БАЗА offcanvas меню   */
/* ===================== */

.logo-desktop {
    display: block;
}

.top-header {
    /*margin-top: 150px;*/
    position: relative;
}

.top-header-content.desktop {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 20px;
}

.top-header-content.mobile {
    display: none;
}


.top-header-link {
    font-size: 24px;
    font-weight: 400;
    color: var(--color-text);
}


/* ============================================
   ANKETA SECTION
   ============================================ */


.anketa-section {
    margin-top: 30px;
    margin-bottom: 30px;
}

.container.anketa-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0px;
}

.anketa-top-elements {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 0px;
}


.anketa-content-left-item-text {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 10px;
}
.ankcont-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.anketa-content-left {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 20px;
}

.anketa-content-left-item {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: start;
    gap: 40px;
}

.anketa-content-left-item-img {
    width: 340px;
    height: 340px;
    object-fit: cover;
    border-radius: 20px;
}

.anketa-content-left-item-stars {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 5px;
}

.anketa-content-left-item-text-title {
    font-size: 30px;
    font-weight: 600;
    color: var(--color-text);
    margin-right: 10px;
}

.anketa-content-left-item-text-description {
    font-size: 20px;
    font-weight: 400;
    color: var(--color-text);
}

.anketa-content-left-item-contacts-button {
    display: none;
}

.heart-path {
    stroke: #A6A6A6; /* Исходный серый контур */
    fill: none; /* Без заливки изначально */
    transition: fill 0.3s ease, stroke 0.3s ease; /* Плавный переход */
}

.heart.active .heart-path {
    fill: #FF3F7F; /* Заливка цветом при активном состоянии */
    stroke: none; /* Контур тоже в цвет (опционально, для жирности) */
}

.anketa-content-left-item-contacts-icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 10px;
}


.anketa-content-left-item-contacts {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: space-between;
    gap: 30px;
    background-color: var(--color-bg-alt);
    width: 100%;
    border-radius: 20px;
    padding: 20px;
}

.contact-icon-link {
    cursor: pointer;
}

.contact-icon-link:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 12px rgba(154, 195, 85, 0.3);
}

.contact-icon-link:active {
    transform: translateY(0) scale(0.95);
    background-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(154, 195, 85, 0.5);
}

.contact-icon-link:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.contact-icon-link img {
    transition: filter var(--transition-base);
}

.contact-icon-link:hover img {
    filter: brightness(1.2);
}

.contact-icon-link:active img {
    filter: brightness(1.5);
}

.anketa-content-right {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 20px;
}

.anketa-content-right-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* ============================================
   CALENDAR
   ============================================ */

.calendar-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    max-width: 350px;
    border: 1px solid var(--color-primary);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.month-year {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.nav-button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.nav-button:hover {
    background-color: #f0f0f0;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 10px;
}

.weekday {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    padding: 8px 0;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.day {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.day:hover {
    background-color: #f0f0f0;
}

.day.other-month {
    color: #ccc;
}

.day.current-month {
    color: #333;
}

.day.selected {
    background-color: var(--color-primary);
    color: white;
}

.day.today {
    border-color: #007AFF;
}


/* Стили для выходных дней (суббота и воскресенье) */
.day:nth-child(7n+6),
.day:nth-child(7n+7) {
    color: var(--color-primary); /* Зеленый цвет для выходных */
}

/* Для дней другого месяца в выходные */
.day.other-month:nth-child(7n+6),
.day.other-month:nth-child(7n+7) {
    color: var(--color-primary); /* Светло-зеленый для выходных другого месяца */
}

/* Сохраняем белый цвет для выбранных дней, даже если это выходные */
.day.selected:nth-child(7n+6),
.day.selected:nth-child(7n+7) {
    color: white;
}


.menu {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    border: 1px solid var(--color-primary);
    border-radius: 10px;
    width: 100%;
    max-width: 100%;
    display: flex;
    list-style: none;
    overflow: visible;
}

.menu a {
    text-decoration: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.link {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu .link {
    gap: 10px;
    padding: 8px 12px;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
    width: 100%;
    max-width: 100%;
}

.menu .link span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    min-width: 0;
}

.menu .link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.menu .link svg {
    width: 14px;
    height: 14px;
    fill: #000000;
    transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
    flex-shrink: 0;
}

.menu .item {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.menu .item .submenu {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 100%;
    border-radius: 0 0 16px 16px;
    left: 0;
    width: 100%;
    overflow: hidden;
    border: 1px solid #cccccc;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
    pointer-events: none;
    list-style: none;
}

.menu .item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    border-color: var(--color-primary);
    background-color: var(--color-bg);
}

.menu .item:hover .link {
    color: var(--color-text);
    border-radius: 16px 16px 0 0;

}

.menu .item:hover .link::after {
    transform: scaleX(1);
    transform-origin: right;

}

.menu .item:hover .link svg {
    fill: #ffffff;
    transform: rotate(-180deg);

}

.submenu .submenu-item {
    width: 100%;
    transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid var(--color-primary);
}

.submenu .submenu-link {
    display: block;
    padding: 12px 24px;
    width: 100%;
    position: relative;
    text-align: start;
    transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 12px;
}

.submenu .submenu-item:last-child .submenu-link {
    border-bottom: none;
}

.submenu .submenu-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    transform: scaleX(0);
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    z-index: -1;
    transform-origin: left;
    transition: transform 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.submenu .submenu-link:hover:before {
    transform: scaleX(1);
    transform-origin: right;
}

.submenu .submenu-link:hover {
    background-color: var(--color-primary);
}

.filter-button.desktop {
    background-color: var(--color-primary);
    color: var(--color-bg);
    border-radius: 10px;
    padding: 20px 20px;
    font-size: 16px;
}

.filter-button:hover {
    background-color: var(--color-primary-hover);
}

.anketa-content-right-item-services {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: start;
    gap: 20px;
    width: 350px;
    overflow: visible;
}

.anketa-content-right-item-services-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
}

.anketa-content-right-item-services-item {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 10px;
    min-width: 0;
    overflow: visible;
}

/* Блок услуги ~65%, блок времени ~35% (с учетом gap 20px) */
.anketa-content-right-item-services-item {
    width: 100%;
    flex-shrink: 0;
}

/* Меньше padding для блока времени, чтобы слово влезало */
.anketa-content-right-item-services-item:last-child .menu .link {
    padding: 8px 8px;
}

.dropdown-menu {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.anketa-content-right-item-services-item-button {
    width: 100%;
    max-width: 350px;
    padding: 12px;
    background: var(--color-primary);
    color: #fff;
    font-size: 16px;
    border-radius: 10px;
    font-weight: 600;
    border: none;
}

.anketa-content-right-item-services-item-button:hover {
    background: var(--color-primary-hover);
}

.anketa-center-elements {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
}

.anketa-center-elements-content {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0 10px;
    scrollbar-width: thin;
    scrollbar-color: #9ac355 #e0e0e0;
}
.anketa-center-elements-content > ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
/*    min-width: max-content;*/
    min-width: 0;
}

.anketa-center-elements-content-item {
    display: inline-block;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.anketa-center-elements-content-item.active {
    color: var(--color-primary);
    cursor: pointer;
}

.anketa-center-elements-content-line {
    width: 100%;
    height: 1px;
    background-color: rgb(0, 0, 0, 0.3)
}

.anketa-center-elements-content-text {
    font-size: 17px;
    font-weight: 400;
    color: var(--color-text);
}

.anketa-center-content {
    display: flex;
    flex-direction: column;
    gap: 40px;

}
/*-{-gvv-*/
.ank-methods h4 {
    font-size: 17px;
    margin-bottom: 10px;
}
.helpwith > p, .ank-methods > p {
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
    column-gap: 15px;
}

.helpwith span, .ank-methods span {
    display: inline-block;
    padding: 0 3px;
    margin-bottom: 10px;
    border: 1px solid var(--color-primary);
    /*background-color: #dff5c0;*/
    border-radius: 5px;

}
/*-gvv-}-*/
.reviews-list {
    display: flex;
    flex-direction: row;
    gap: 30px
}

.review-card-header {
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.review-author-info {
    display: flex;
    flex-direction: column;
    gap: 10px;

}

.review-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 380px;
    height: 440px;
    border-radius: 20px;
    background-color: #F1F2F5;
    padding: 32px;
}

.review-author-name {
    font-weight: 500;
    font-size: 32px;
    line-height: 100%;

}


.review-author-position {
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
}


.review-read-more-btn {
    font-weight: 600;
    font-size: 20px;
    line-height: 100%;
    text-align: center;
    color: #9AC355;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    margin-top: 10px; /* Добавлено для смещения кнопки вниз */
}


.review-rating-list {
    display: flex;
    justify-content: space-between;
}


.review-avatar {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
}


/* --- Modal base --- */
.review-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none; /* hidden by default */
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
}

/* затемнённый фон */
.review-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 240ms ease;
}


/* Панель модалки */
.review-modal-panel {
    position: relative;
    width: 100%;
    max-width: 920px;
    margin: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    transform: translateY(10px) scale(0.995);
    opacity: 0;
    transition: transform 260ms cubic-bezier(.2, .9, .2, 1), opacity 260ms ease;
    z-index: 2;
    overflow: hidden;
}

/* открытое состояние (JS добавляет .open) */
.review-modal.open {
    display: flex;
}

.review-modal.open .review-modal-backdrop {
    opacity: 1;
}

.review-modal.open .review-modal-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* close button (top-right) */
.review-modal-close {
    position: absolute;
    right: 12px;
    top: 8px;
    z-index: 3;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 28px;
    cursor: pointer;
    padding: 8px;
    color: #333;
    border-radius: 6px;
}


/* body content layout */
.review-modal-body {
    display: flex;
    gap: 24px;
    padding: 28px;
    align-items: flex-start;
}

/* left column: avatar + rating */
.review-modal-left {
    flex: 0 0 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.review-modal-avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    background: #f0f0f0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.review-modal-rating {
    display: flex;
    flex-direction: row;
    gap: 6px;
}

/* rating: we clone star icons inside */
.review-modal-rating img {
    width: 22px;
    height: 22px;
    margin-right: 6px;
}

/* right column */
.review-modal-right {
    flex: 1 1 auto;
    min-width: 0;
}

.review-modal-name {
    margin: 0 0 6px 0;
    font-size: 22px;
}

.review-modal-position {
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 14px;
    line-height: 1.2;
}

.review-modal-text {
    color: rgba(0, 0, 0, 0.85);
    line-height: 1.5;
}


.anketa-center-elements-content-leave-review {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: start;
    align-items: start;
}

.anketa-center-elements-content-rating-list {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: start;
    align-items: start;
    direction: ltr;
}

/* Стили для интерактивных звезд рейтинга */
.star-rating-item {
    font-size: 35px;
    cursor: pointer;
    color: #D3D3D3; /* Серый цвет для неактивных звезд */
    transition: all var(--transition-fast);
    user-select: none;
    line-height: 1;
}

.star-rating-item.active {
    color: #FFD700; /* Золотой цвет для активных звезд */
}

.star-rating-item:hover {
    transform: scale(1.2);
}

.star-rating-item:active {
    transform: scale(0.9);
}

.anketa-center-elements-content-leave-review-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: start;
    align-items: start;
}

.anketa-center-elements-content-leave-review-form-textarea {
    width: 700px;
    height: 160px;
    padding: 10px;
    border-radius: 15px;
    border: 1px solid var(--color-text);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text);
}

.form-submit-btn {
    height: 40px;
    width: 160px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text);
    background-color: var(--color-primary);
    color: #fff;
}

.anketa-center-aboutme-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: start;
    align-items: start;
}
/* FOOTER */

.anketa-center-services-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.anketa-center-services-content-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--color-primary);
    padding: 20px;
    border-radius: 20px;
}

.anketa-center-services-content-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
}

.anketa-center-services-content-item h3 span {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
}

.anketa-center-services-content-item p {
    font-size: 17px;
    font-weight: 400;
    color: var(--color-text);
}

.anketa-center-services-content-item span {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
}

.blog-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.blog-list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
}

.blog-list-item {
    list-style: none;
}

/* Blog card (плашка статьи) */
.blog-card {
    display: grid;
    grid-template-columns: 1fr 180px;
    background: #F1F2F5;
    grid-template-rows: auto 1fr;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    height: 440px;
}

.blog-card-left {
    display: flex;
    justify-content: center;
    margin: 30px;
    grid-column: 1; /* Первая колонка */
    grid-row: 1; /* Первая строка */
}

.blog-card-center {
    grid-column: 1 / span 2; /* Занимает обе колонки */
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    gap: 30px;
}

.blog-card-title {
    font-family: Montserrat;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0;
}

.blog-card-excerpt {
    font-size: 18px;
    line-height: 100%;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;

    margin-top: 20px;
    overflow: hidden;
    text-overflow: ellipsis;

    display: -moz-box;
    -moz-line-clamp: 3;
    -moz-box-orient: vertical;
    box-orient: vertical;
}

.blog-card-button {
    margin-top: 0;
    justify-self: center;
    background: none;
    border: none;
    color: #9AC355;
    font-weight: 600;
    font-size: 18px;

    cursor: pointer;
}

.blog-card-media {
    grid-column: 2; /* Вторая колонка */
    grid-row: 1; /* Первая строка */
}

.blog-card-media-icon {
    opacity: 0.9;
}

.blog-more-btn {
    width: 340px;
    height: 64px;
    border-radius: 10px;
    padding: 8px 16px;
    border: none;
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    font-weight: 400;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.blog-more-btn:hover,
.blog-more-btn:focus {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    outline: none;
}

/* -{-gvv- */
.diploms-all-wrap {
    position: relative;
}
.dip-button-prev, .dip-button-next {
    width: 37px;
    height: 34px;
    position: absolute;
    top: calc(50% - 18px);
    z-index: 5;
}
.dip-button-next {
    right: 0;
}
.dip-button-prev::after, .dip-button-next::after {
    content: '';
    position: absolute;
    background-image: url("/img/bp-left.png");
    background-position: center;
    background-repeat: space;
    width: 37px;
    height: 34px;
    border-radius: 5px;
    box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
}
.dip-button-next::after {
    background-image: url("/img/bp-right.png");
    right: 0;
}
.diploms-wrap {
    max-width: 935px;
}
.specialist-nav-btn {
    position: absolute;
    top: calc(50% - 18px);
    z-index: 5;

    /*position: relative;*/
    /*display: inline-block;*/
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.specialist-nav-btn-next {
    right: 0;
}
.specialist-nav-btn .nav-circle {
    fill: #FFFFFF;
    transition: fill 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.specialist-nav-btn .specialist-arrow {
    stroke: black;
    transition: stroke 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.specialist-nav-btn:active {
    transform: scale(0.9);
}
.specialist-nav-btn:active .nav-circle {
    fill: var(--color-primary, #f8f9fa);
}
.anketa-content-left-item-contacts-button {
    display: block;
    width: 350px;
    padding: 12px;
    background: var(--color-primary);
    color: #fff;
    font-size: 16px;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    height: 100%;
}
/* -gvv-}- */
@media (max-width: 1280px) {
    /* Header адаптация для планшетов */
    .logo-desktop {
        display: none;
    }

    /* TOP HEADER */
    .top-header-link {
        font-size: 20px;
        font-weight: 400;
        color: var(--color-text);
    }

    /* ANKETA SECTION */

    .anketa-top-elements {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }
    #anketa-booking.anketa-content-right {
        display: flex;
        width: 100%;
        max-width: 100%;
        margin-top: 24px;
    }

    .anketa-content-left-item-text-title {
        font-size: 28px;
    }

    .anketa-content-left-item-text-description {
        font-size: 18px;
    }

    .anketa-content-left-item-text-format {
        font-weight: 700;
        font-size: 20px;
    }

    .anketa-content-left-item-text-format-container {
        font-size: 16px;
    }
    .heart-svg {
        width: 40px;
        height: 40px;
    }

    .anketa-center-elements {
        padding: 20px;
    }

    /* Адаптивные звезды для планшетов */
    .star-rating-item {
        font-size: 36px;
    }

    .anketa-center-elements-content::-webkit-scrollbar {
        height: 10px !important;
    }

    .anketa-center-content.aboutme h3 {
        font-size: 24px;
    }

    .reviews-list {
        display: flex !important;
        flex-direction: row !important;
        gap: 20px !important;
        overflow-x: auto !important;
        scroll-behavior: smooth !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 10px 0 20px 0 !important;
    }

    .review-card {
        flex: 0 0 360px !important;
        min-width: 360px !important;
        max-width: 360px !important;
        height: auto;
        min-height: 420px;
        scroll-snap-align: start;
    }

    .review-author-name {
        font-size: 24px;
    }

    .review-author-position {
        font-size: 13px;
    }

    .review-text {
        font-size: 16px;
        line-height: 140%;
    }

    .review-read-more-btn {
        font-size: 18px;
        margin-top: 20px;
    }

    .review-avatar-img {
        width: 80px;
        height: 80px;
    }

    .reviews-list::-webkit-scrollbar {
        height: 10px !important;
    }

    /* Firefox */
    @supports (-moz-appearance: none) {
        .reviews-list {
            scrollbar-width: thin !important;
            scrollbar-color: rgba(154, 195, 85, 0.6) rgba(0, 0, 0, 0.05) !important;
        }
    }

    .reviews-title {
        font-size: 34px;
    }

    .blog-section {
        padding: 60px 30px;
    }

    .blog-slider {
        position: relative;
        overflow: hidden;
        width: 100%;
    }

    .blog-list {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        /* Добавьте это: */
        scroll-snap-type: x mandatory;
    }

    .blog-card-left {
        display: flex;
        justify-content: center;
        margin-top: 30px;
        grid-column: 1; /* Первая колонка */
        grid-row: 1; /* Первая строка */
    }

    .blog-card-center {
        grid-column: 1 / span 2; /* Занимает обе колонки */
        grid-row: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px;
        gap: 60px;
    }

    .blog-card-media {
        grid-column: 2;
        grid-row: 1;

        /* Выравниваем контейнер по правому краю ячейки */
        justify-self: end;

        /* Если нужно выравнивание по вертикали, например, по центру */
        align-self: center;

        /* Задаем максимальные размеры, если нужно */
        max-width: 180px; /* ширина колонки */
        max-height: 100%;
    }

    .blog-card-media img {
        /* Сохраняем пропорции изображения */
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        display: block;
    }

    .blog-card-media img {
        height: 200px;
    }

    .blog-card {
        display: grid;
        grid-template-columns: 1fr 220px;
        background: #F1F2F5;
        grid-template-rows: auto 1fr;
        border-radius: 20px;
        overflow: hidden;
        width: 100%;
        height: 440px;
    }


    .container.blog-container {
        padding: 0;
    }

    .blog-title {
        font-size: 34px;
    }

    .blog-subtitle {
        font-size: 18px;
    }

    .blog-btn-block {
        display: flex;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767px) {

    .logo-desktop {
        display: none;
    }

    .hero-title--desktop {
        display: none;
    }

    .hero-title--tablet {
        display: inline-block; /* или block — в зависимости от места */
    }

    .reviews-slider {
        position: relative;
        overflow: hidden;
        width: 100%;
    }

    .blog-slider {
        position: relative;
        overflow: hidden;
        width: 100%;
    }


    /* TOP HEADER */
    .top-header-link {
        font-size: 15px;
    }

    .top-header-content.mobile {
        display: flex;
    }


    .top-header-content.desktop {
        display: none;
    }

    /* ANKETA SECTION */
    .anketa-top-elements {
        padding: 0;
    }

    #anketa-booking.anketa-content-right {
        display: flex;
        width: 100%;
        max-width: 100%;
        padding: 0 20px 24px;
        box-sizing: border-box;
    }

    .anketa-content-left {
        padding: 0px 20px;
        width: 100%;
    }

    .anketa-content-left-item-img {
        width: 100%;
        height: 100%;
    }
    .anketa-content-left-item-text {
        width: 100%;
    }

    .anketa-content-left-item {
        position: relative;
        flex-direction: column;
        width: 100%;
    }
    .ankcont-wrap {
        /*position: absolute;*/
        width: 100%;
    }
    .anketa-content-left-item-text-title {
        font-size: 24px;
    }

    .anketa-content-left-item-text-description {
        font-size: 18px;
    }

    .anketa-content-left-item-text-format {
        font-weight: 700;
        font-size: 20px;
    }

    .anketa-content-left-item-text-format-container {
        font-size: 16px;
    }

    .anketa-center-elements-content-text {
        font-size: 18px;
    }

    .heart-svg {
        width: 40px;
        height: 40px;
    }

    .anketa-content-left-item-contacts-button {
        display: block;
        width: 100%;
        padding: 12px;
        background: var(--color-primary);
        color: #fff;
        font-size: 16px;
        border-radius: 10px;
        font-weight: 600;
        border: none;
        height: 64px;
    }

/*    .anketa-center-elements {
        padding: 20px;
    }*/

    .anketa-center-elements-content::-webkit-scrollbar {
        height: 10px !important;
    }

    .anketa-center-services-content-item h3 {
        font-size: 15px;
    }

    .anketa-center-services-content-item h3 span {
        font-size: 15px;
    }

    .anketa-center-services-content-item p {
        font-size: 15px;
    }

    .anketa-center-content.aboutme h3 {
        font-size: 20px;
    }

    .anketa-center-elements-content-leave-review-form {
        width: 100%;
    }

    .anketa-center-elements-content-leave-review-form-textarea {
        width: 100%;
    }

    /* Адаптивные звезды для мобильных */
    .star-rating-item {
        font-size: 32px;
    }

    .reviews-list {
        display: flex !important;
        flex-direction: row !important;
        gap: 20px !important;
        overflow-x: auto !important;
        scroll-behavior: smooth !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 10px 0 20px 0 !important;
    }

    .review-card {
        flex: 0 0 340px !important;
        min-width: 340px !important;
        max-width: 340px !important;
        height: auto;
        min-height: 420px;
        scroll-snap-align: start;
    }

    .review-author-name {
        font-size: 16px;
    }

    .review-author-position {
        font-size: 12px;
    }

    .review-text {
        font-size: 14px;
        line-height: 140%;
    }

    .review-read-more-btn {
        font-size: 16px;
        margin-top: 20px;
    }

    .review-avatar-img {
        width: 80px;
        height: 80px;
    }

    .reviews-list::-webkit-scrollbar {
        height: 10px !important;
    }


    /* Firefox */
    @supports (-moz-appearance: none) {
        .reviews-list {
            scrollbar-width: thin !important;
            scrollbar-color: rgba(154, 195, 85, 0.6) rgba(0, 0, 0, 0.05) !important;
        }
    }

    .reviews-title {
        font-size: 34px;
    }

    .blog-section {
        padding: 60px 30px;
    }

    .blog-slider {
        position: relative;
        overflow: hidden;
        width: 100%;
    }

    .blog-list {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        /* Добавьте это: */
        scroll-snap-type: x mandatory;
        gap: 20px;
    }

    .blog-card-left {
        display: flex;
        justify-content: center;
        margin-top: 30px;
        grid-column: 1; /* Первая колонка */
        grid-row: 1; /* Первая строка */
    }

    .blog-card-center {
        grid-column: 1 / span 2; /* Занимает обе колонки */
        grid-row: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px;
        gap: 60px;
    }

    .blog-card-media {
        grid-column: 2;
        grid-row: 1;

        /* Выравниваем контейнер по правому краю ячейки */
        justify-self: end;

        /* Если нужно выравнивание по вертикали, например, по центру */
        align-self: center;

        /* Задаем максимальные размеры, если нужно */
        max-width: 180px; /* ширина колонки */
        max-height: 100%;
    }

    .blog-card-media img {
        /* Сохраняем пропорции изображения */
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        display: block;
    }

    .blog-card-media img {
        height: 200px;
    }

    .blog-card {
        display: grid;
        grid-template-columns: 1fr 150px;
        background: #F1F2F5;
        grid-template-rows: auto 1fr;
        border-radius: 20px;
        overflow: hidden;
        width: 100%;
        height: 400px;
    }

    .container.blog-container {
        padding: 0;
    }

    .blog-title {
        font-size: 34px;
    }

    .blog-subtitle {
        font-size: 18px;
    }

    .blog-btn-block {
        display: flex;
        width: 100%;
        justify-content: center;
    }


    .review-modal-panel {
        height: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .review-modal-body {
        flex-direction: column;
        padding: 18px;
        gap: 12px;
        overflow: auto;
    }

    .review-modal-left {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .review-modal-avatar {
        width: 84px;
        height: 84px;
    }

    .review-modal-name {
        font-size: 20px;
    }
}
@media (max-width: 444px) {
    .specialist-nav-btn {
        transform: scale(.5);
    }
    .specialist-nav-btn-prev {
        left: -30px;
    }
    .specialist-nav-btn-next {
        right: -30px;
    }
    .specialist-nav-btn:active {
        transform: scale(.4);
    }
}

/* ============================================
   ONLINE BOOKING (anketa-booking.js)
   ============================================ */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(100%);
}

#anketa-booking .day {
    border: none;
    background: transparent;
    font-family: inherit;
}

#anketa-booking .day.day-disabled {
    color: #c5c5c5;
    background: #f3f3f3;
    cursor: not-allowed;
    opacity: 1;
}

#anketa-booking .day:not(.day-disabled):not(.empty) {
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

#anketa-booking .day:not(.day-disabled):not(.empty):hover {
    background-color: rgba(154, 195, 85, 0.28);
}

#anketa-booking .day:not(.day-disabled):not(.empty):active {
    transform: scale(0.92);
}

.anketa-booking-select option {
    cursor: pointer;
}

#anketa-booking .day.selected {
    background-color: var(--color-primary);
    color: #fff;
}

#anketa-booking .day.today:not(.selected):not(.day-disabled) {
    border-color: #007AFF;
}

.anketa-booking-menu .item .submenu {
    position: static;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: none;
    pointer-events: none;
    border: none;
    box-shadow: none;
    transition: max-height 0.3s ease, opacity 0.25s ease;
}

.anketa-booking-menu .item:hover .submenu {
    opacity: 0;
    visibility: hidden;
    transform: none;
    pointer-events: none;
}

.anketa-booking-menu .item.is-open {
    position: relative;
    z-index: 20;
}

.anketa-booking-menu .item.is-open .submenu {
    opacity: 1;
    visibility: visible;
    max-height: 240px;
    overflow-y: auto;
    transform: none;
    pointer-events: auto;
    z-index: 21;
    border: 1px solid var(--color-primary);
    border-top: none;
    border-radius: 0 0 16px 16px;
    background-color: #fff;
}

.anketa-booking-menu .submenu .submenu-item {
    border: none;
    border-bottom: 1px solid rgba(154, 195, 85, 0.4);
}

.anketa-booking-menu .submenu .submenu-item:last-child {
    border-bottom: none;
}

.anketa-booking-menu .submenu .submenu-link {
    padding: 12px 16px;
    line-height: 1.35;
}

.anketa-booking-menu .link {
    background: #fff;
    position: relative;
    z-index: 1;
    transition: border-color 0.2s ease, border-radius 0.2s ease;
}

.anketa-booking-menu .item.is-open .link {
    border-radius: 16px 16px 0 0;
    border: 1px solid var(--color-primary);
    border-bottom: none;
}

.anketa-booking-menu .item.is-open .link svg {
    transform: rotate(-180deg);
    transition: transform 0.25s ease;
}

#anketa-booking-dropdown-spacer {
    display: none;
}

.submenu-link--empty {
    cursor: default;
    color: #999;
}

.anketa-booking-msg {
    margin: 10px 0 0;
    font-size: 14px;
}

.anketa-booking-msg.is-success {
    color: #2c7;
}

.anketa-booking-msg.is-error {
    color: #c00;
}

.anketa-time-hint {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.35;
    min-height: 18px;
    color: #666;
}

.psy-crm-select.is-disabled .psy-crm-select__btn,
.psy-crm-select__btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    background: #f8f8f8;
}

#anketa-booking .psy-crm-select,
#anketa-booking .psy-crm-select--filter {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.anketa-booking-select.psy-crm-select__native {
    display: none;
}

.anketa-content-right-item-services {
    gap: 14px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

#anketa-booking .psy-crm-cal-host,
#anketa-booking .calendar-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

#anketa-booking .calendar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

#anketa-booking .days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

#anketa-booking .day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
}

#anketa-booking .day.selected {
    background-color: var(--color-primary);
    color: #fff;
}

@media (max-width: 1280px) {
    .anketa-content-right-item-services {
        flex-direction: column;
        width: 100%;
    }

    .anketa-content-right-item-services-item {
        width: 100%;
    }

    #anketa-booking .psy-crm-select {
        max-width: 100%;
    }

    #anketa-booking .calendar-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .anketa-content-right {
        width: 100%;
    }

    .anketa-content-right-item {
        width: 100%;
    }

    .anketa-content-right-item-services,
    .anketa-booking-select,
    #anketa-booking .calendar-container,
    .anketa-content-right-item-services-item-button {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-aspect-ratio: 1/1) and (min-width: 769px) {
    .anketa-top-elements {
        flex-direction: column;
        align-items: stretch;
    }

    #anketa-booking.anketa-content-right {
        width: 100%;
        max-width: 100%;
        padding: 0 20px 24px;
    }

    .anketa-content-right-item-services {
        flex-direction: column;
    }
}