/*region 1. Базовые стили, переменные и анимация загрузки */
:root {
    --bg-color: #ffffff;
    --accent-blue: #007AFF;
    --text-main: #323131;
    --text-secondary: #86868b;
    --light-gray: #f5f5f7;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    -webkit-font-smoothing: antialiased;
}

body.loading {
    overflow: hidden;
}

#intro-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #505050;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

#intro-loader.fade-out {
    transform: translateY(-100%);
}

.intro-logo {
    display: flex;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to right, #ffffff 50%, #757577 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    animation: textFillReveal 1.5s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
}

.intro-logo span {
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 6px;
    display: inline-block;
    transform-origin: center center;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

#intro-loader.disintegrate .intro-logo {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

#intro-loader.disintegrate .intro-logo span {
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
    animation-name: letterDropDown;
    animation-duration: 0.5s;
    animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);
    animation-fill-mode: forwards;
}

#intro-loader.disintegrate .intro-logo span:nth-child(1) { animation-delay: 0.0s; }
#intro-loader.disintegrate .intro-logo span:nth-child(2) { animation-delay: 0.2s; }
#intro-loader.disintegrate .intro-logo span:nth-child(3) { animation-delay: 0.4s; }
#intro-loader.disintegrate .intro-logo span:nth-child(4) { animation-delay: 0.6s; }
#intro-loader.disintegrate .intro-logo span:nth-child(5) { animation-delay: 0.8s; }
#intro-loader.disintegrate .intro-logo span:nth-child(6) { animation-delay: 1.0s; }

@keyframes letterDropDown {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(100px);
    }
}

@keyframes textFillReveal {
    0% { background-position: 100% 0; }
    100% { background-position: 0% 0; }
}

@keyframes fadeInUpMap {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/*endregion*/

/*region 2. Шапка сайта и навигация */
header {
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.logo {
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    margin-left: 30px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent-blue);
}
/*endregion*/

/*region 3. Главная секция и декоративные линии */
#about.hero-timeline {
    background-color: #f5f5f7;
    color: #1d1d1f;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 220px 0;
    overflow: hidden;
    font-family: 'Cormorant Garamond', Georgia, serif;
    box-sizing: border-box;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    z-index: 2;
    text-align: center;
}

.about-macro-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 2px;
    margin: 20px auto 80px auto;
    color: #1d1d1f;
    display: inline-block;
}

.decor-top-pattern div,
.decor-bottom-pattern div,
.decor-left-bottom-pattern div,
.decor-right-top-pattern div {
    background-color: #b0b0b5;
    pointer-events: none;
    z-index: 1;
}

.decor-top-pattern,
.decor-bottom-pattern,
.decor-left-bottom-pattern,
.decor-right-top-pattern {
    position: absolute;
    width: 600px;
    height: 900px;
}

.decor-top-pattern {
    top: -50px;
    left: -160px;
}
.decor-top-pattern .line-decor-v-1 { position: absolute; top: -40px; height: 720px; left: 45px; width: 2px; }
.decor-top-pattern .line-decor-v-2 { position: absolute; top: 20px;  height: 480px; left: 65px; width: 2px; }
.decor-top-pattern .line-decor-h-1 { position: absolute; top: 40px;  height: 2px;  left: -60px; width: 430px; }
.decor-top-pattern .line-decor-h-2 { position: absolute; top: 60px;  height: 2px;  left: 0;     width: 330px; }

.decor-bottom-pattern {
    bottom: -50px;
    right: -160px;
}
.decor-bottom-pattern .line-decor-v-1 { position: absolute; bottom: -40px; height: 720px; right: 45px; width: 2px; }
.decor-bottom-pattern .line-decor-v-2 { position: absolute; bottom: 20px;  height: 480px; right: 65px; width: 2px; }
.decor-bottom-pattern .line-decor-h-1 { position: absolute; bottom: 40px;  height: 2px;  right: -60px; width: 430px; }
.decor-bottom-pattern .line-decor-h-2 { position: absolute; bottom: 60px;  height: 2px;  right: 0;     width: 330px; }

.decor-left-bottom-pattern {
    bottom: -50px;
    left: -160px;
}
.decor-left-bottom-pattern .line-decor-v-1 { position: absolute; bottom: -40px; height: 720px; left: 45px; width: 2px; }
.decor-left-bottom-pattern .line-decor-v-2 { position: absolute; bottom: 20px;  height: 480px; left: 65px; width: 2px; }
.decor-left-bottom-pattern .line-decor-h-1 { position: absolute; bottom: 40px;  height: 2px;  left: -60px; width: 430px; }
.decor-left-bottom-pattern .line-decor-h-2 { position: absolute; bottom: 60px;  height: 2px;  left: 0;     width: 330px; }

.decor-right-top-pattern {
    top: -50px;
    right: -160px;
}
.decor-right-top-pattern .line-decor-v-1 { position: absolute; top: -40px; height: 720px; right: 45px; width: 2px; }
.decor-right-top-pattern .line-decor-v-2 { position: absolute; top: 20px;  height: 480px; right: 65px; width: 2px; }
.decor-right-top-pattern .line-decor-h-1 { position: absolute; top: 40px;  height: 2px;  right: -60px; width: 430px; }
.decor-right-top-pattern .line-decor-h-2 { position: absolute; top: 60px;  height: 2px;  right: 0;     width: 330px; }

.timeline-item {
    margin-bottom: 45px;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.timeline-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.timeline-card p {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.4rem;
    line-height: 1.65;
    color: #1d1d1f;
    margin: 0 auto;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-align: center;
    max-width: 740px;
}

.handwritten-card {
    margin-top: 90px;
    position: relative;
}

.handwritten-card p {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.8rem;
    color: #1d1d1f;
    font-weight: 700;
    text-align: center;
    margin: 0 auto;
    max-width: 680px;
}
/*endregion*/

/*region 4. Наша команда и персонал */
.team {
    padding: 100px 0;
    background: #ffffff;
    overflow: hidden;
}

.team-header {
    text-align: center;
    margin-bottom: 90px;
    padding: 0 20px;
}

.team-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.team-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
}

.member-card {
    background: var(--light-gray);
    padding: 15px;
    border-radius: 35px;
    text-align: left;
    transition: var(--transition);
}

.member-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-main);
    line-height: 1.3;
}

.member-card p {
    color: var(--accent-blue);
    font-size: 0.85rem;
}

.member-card .member-image {
    height: 320px;
    border-radius: 25px;
    overflow: hidden;
    margin-bottom: 15px;
    background-position: center 20%;
    background-repeat: no-repeat;
    background-size: cover;
}

.team-rows-container {
    display: flex;
    flex-direction: column;
    gap: 120px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ededf0;
    min-height: 240px;
    position: relative;
    padding: 20px 80px;
    border-radius: 4px;
}

.member-row:nth-child(even) {
    flex-direction: row-reverse;
}

.member-info-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
    width: 55%;
}

.member-row:not(:nth-child(even)) .member-info-box {
    align-items: flex-start;
    text-align: left;
}

.member-row:nth-child(even) .member-info-box {
    align-items: flex-end;
    text-align: right;
}

.member-titles h3 {
    font-size: 2rem;
    font-weight: 400;
    color: #1d1d1f;
    margin: 0 0 8px 0;
}

.member-titles .position {
    font-size: 1.1rem;
    color: #515154;
    margin: 0;
}

.member-photo-box {
    position: relative;
    width: 320px;
    height: 380px;
    margin-top: -70px;
    margin-bottom: -70px;
    z-index: 5;
}

.member-photo-box .member-image {
    width: 100%;
    height: 100%;
    background-color: #b8b8bc;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.team-slider {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.team-card {
    background: #f9f9f9;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.team-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

.team-pagination {
    display: none;
}
/*endregion*/

/*region 5. Результаты и слайдер сравнения "До / После" */
.results {
    padding: 120px 5%;
    background: var(--light-gray);
}

.results-header {
    text-align: center;
    margin-bottom: 60px;
}

.results-header h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.results-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.main-gallery-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.mega-slider-card {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    margin-bottom: 60px;
}

.mega-slider-card:last-child {
    margin-bottom: 0;
}

.showcase-viewport {
    overflow: hidden;
    border-radius: 32px;
    background: #ffffff;
    padding: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    width: 100%;
}

.ba-slider {
    position: relative;
    height: 500px;
    width: 100%;
    overflow: hidden;
    background: #e5e5ea;
    user-select: none;
    -webkit-user-select: none;
    border-radius: 32px;
}

.side {
    position: absolute;
    top: 0;
    height: 100%;
    overflow: hidden;
}

.side img {
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
    pointer-events: none;
}

.before-side {
    left: 0;
    width: 50%;
    z-index: 2;
}

.after-side {
    left: 0;
    width: 100%;
    z-index: 1;
}

.drag-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #ffffff;
    box-shadow: 0 0 12px rgba(0,0,0,0.3);
    z-index: 3;
    cursor: ew-resize;
}

.drag-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.drag-button::before {
    content: '↔';
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 600;
}

.case-info {
    margin-top: 30px;
    padding: 25px;
    text-align: center;
    background: var(--light-gray);
    border-radius: 32px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.case-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-main);
}

.case-info p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.5;
}

.mega-slider-card:nth-child(1) .before-side img { transform: translate(-30px, 50px) scale(1.7); }
.mega-slider-card:nth-child(1) .after-side img  { transform: translate(-120px, 65px) scale(1.4); }

.mega-slider-card:nth-child(2) .before-side img { transform: translate(0px, 0px) scale(1.5); }
.mega-slider-card:nth-child(2) .after-side img  { transform: translate(-80px, 70px) scale(1.5); }

.mega-slider-card:nth-child(3) .before-side img { transform: translate(0px, 15px) scale(1.3); }
.mega-slider-card:nth-child(3) .after-side img  { transform: translate(30px, -50px) scale(1.3); }

.mega-slider-card:nth-child(4) .before-side img { transform: translate(25px, -20px) scale(1.1); }
.mega-slider-card:nth-child(4) .after-side img  { transform: translate(0px, 30px) scale(1.2); }

.mega-slider-card:nth-child(5) .before-side img { transform: translate(0px, 15px) scale(1.1); }
.mega-slider-card:nth-child(5) .after-side img  { transform: translate(0px, 0px) scale(1); }

.gallery-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
}

.nav-arrows {
    display: flex;
    align-items: center;
    gap: 20px;
}

.arrow-btn {
    background: var(--light-gray);
    border: none;
    color: var(--text-main);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.arrow-btn:hover {
    background: #e5e5ea;
    color: var(--accent-blue);
    transform: scale(1.05);
}

.counter {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    min-width: 70px;
    text-align: center;
}

.works-pagination {
    display: none;
}
/*endregion*/

/*region 6. Отзывы клиентов */
.reviews {
    padding: 100px 0;
    background-color: #ffffff;
    color: #1d1d1f;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.reviews-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.reviews-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 15px;
}

.reviews-header p {
    color: #86868b;
    font-size: 1.1rem;
}

.reviews-container {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 90px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 5% 80px 5%;
}

.reviews-motivation {
    position: relative;
    height: 100%;
    border-right: 1px solid #e5e5ea;
    padding: 200px 5%;
}

.motivation-sticky {
    position: sticky;
    top: 50vh;
    transform: translateY(-50%);
    text-align: center;
    width: 100%;
    padding: 0 10px;
}

.motivation-sticky p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #3a3a3c;
    font-weight: 400;
    margin: 0;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.review-item {
    background: #f5f5f7;
    padding: 35px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, border-color 0.3s ease;
    border-left: 3px solid #d2d2d7;
}

.review-item:hover {
    transform: translateX(5px);
    border-left-color: #007aff;
}

.review-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #2c2c2e;
    margin: 0 0 25px 0;
    font-weight: 400;
    white-space: pre-line;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e5e5ea;
    padding-top: 15px;
}

.review-author {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1d1d1f;
}

.review-date {
    font-size: 0.9rem;
    color: #86868b;
}

.review-item.hidden-review {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.review-item.show-animated {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.btn-more-reviews {
    width: 100%;
    margin-top: 10px;
    padding: 18px;
    background: transparent;
    color: #1d1d1f;
    border: 1px solid #86868b;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-more-reviews:hover {
    background: #1d1d1f;
    color: #ffffff;
    border-color: #1d1d1f;
}

.btn-hide-reviews {
    border-color: #d2d2d7;
    color: #86868b;
}

.reviews-controls {
    width: 100%;
    margin-top: 20px;
}

#hideReviews {
    display: none;
}

#loadMoreReviews {
    display: block;
}

.reviews-controls.expanded #hideReviews {
    display: block;
}

.reviews-controls.expanded #loadMoreReviews {
    display: none;
}

.review-text-wrap {
    position: relative;
    max-height: calc(1.5em * 10);
    line-height: 1.5;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-text-wrap.expanded {
    max-height: 5000px;
    overflow: visible;
}

.read-more-btn {
    display: none;
    background: none;
    border: none;
    color: var(--accent-blue, #007aff);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0 14px 0;
    text-align: left;
    transition: opacity 0.2s ease, transform 0.2s ease;
    outline: none;
}

.read-more-btn:hover {
    opacity: 0.8;
    transform: translateX(3px);
}
/*endregion*/

/*region 7. Прайс-лист и тарифы */
.price {
    padding: 120px 5%;
    background: var(--light-gray);
}

.price-header {
    text-align: center;
    margin-bottom: 60px;
}

.price-header h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.price-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.price-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
    align-items: start;
    box-sizing: border-box;
}

.price-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.price-categories {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.category-btn {
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    font-size: 1.05rem;
    font-weight: 400;
    color: #1d1d1f;
    cursor: pointer;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: transparent;
    border: 2px solid transparent;
}

.category-btn:hover {
    background: #f5f5f7;
}

.category-btn.active {
    background: #f5f5f7;
    color: #1d1d1f;
    font-weight: 400;
    border: 2px solid #0071e3;
}

.price-content-wrapper {
    flex-grow: 1;
    background: #ffffff;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    box-sizing: border-box;
}

.price-tab {
    display: none;
    animation: fadeInTab 0.4s ease forwards;
}

.price-tab.active {
    display: block;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid #e5e5ea;
    gap: 20px;
    box-sizing: border-box;
}

.price-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.price-item:first-child {
    padding-top: 0;
}

.price-item h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 400;
    color: #1d1d1f;
    background: transparent;
    max-width: 75%;
    line-height: 1.5;
    flex: 1 1 auto;
    word-break: break-word;
}

.price-item span {
    font-size: 1.05rem;
    font-weight: 400;
    color: #1d1d1f;
    background: transparent;
    white-space: nowrap;
    flex: 0 0 auto;
    text-align: right;
}

.price-mobile-select {
    display: none;
    position: relative;
    margin-bottom: 20px;
    z-index: 20;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/*endregion*/

/*region 8. Контактная информация и интерактивная карта */
.contacts {
    padding: 120px 10%;
    background: #ffffff;
    color: #1d1d1f;
    border-radius: 80px 80px 0 0;
    text-align: center;
}

.contacts h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.contact-item h3 {
    color: var(--accent-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.contact-item p {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 500;
    color: #1d1d1f;
}

.contacts-addresses {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
    width: 100%;
    max-width: 400px;
}

.map-target-btn {
    background-color: #f5f5f7;
    color: #1d1d1f;
    border: 2px solid transparent;
    padding: 18px 50px 18px 24px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    position: relative;
    outline: none;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.map-target-btn:hover {
    background-color: #e8e8ed;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
}

.map-target-btn.active {
    background-color: #ffffff;
    border-color: var(--accent-blue);
    color: #1d1d1f;
    font-weight: 700;
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.12);
}

.map-target-btn::after {
    content: '📍';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    font-size: 1.1rem;
    opacity: 0.25;
    transition: var(--transition);
}

.map-target-btn.active::after {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
    filter: drop-shadow(0 2px 4px rgba(0, 122, 255, 0.3));
}

.map-wrapper {
    max-width: 1100px;
    margin: 50px auto 0 auto;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5ea;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpMap 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.5s;
}

#map {
    width: 100%;
    height: 450px;
    border-radius: 40px;
    overflow: hidden;
    background: #1a1a1e;
    filter: grayscale(100%) invert(85%) contrast(145%) brightness(140%) hue-rotate(190deg);
    transition: filter 0.3s ease;
}

#map [class*="controls-pane"],
#map [class*="copyright"] {
    filter: grayscale(100%) invert(85%) contrast(155%) brightness(140%) hue-rotate(190deg) !important;
}

.clinic-block {
    margin-bottom: 25px;
}

.clinic-block:last-child {
    margin-bottom: 0;
}

.clinic-address {
    display: block;
    font-size: 0.85rem;
    color: #86868b;
    margin-bottom: 4px;
    text-align: center;
    font-weight: 500;
}
/*endregion*/

/*region 9. Боковая панель и Мобильное меню */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10002;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    outline: none;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--text-main, #323131);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}
/*endregion*/

/*region 10. Адаптивный дизайн и Медиа-запросы */
@media (min-width: 1025px) {
    .member-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
    }

    .member-card:hover .member-image {
        transform: scale(1.04);
    }
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-image {
        position: static;
    }

    .ba-slider {
        height: 380px;
    }
}

@media (max-width: 992px) {
    .decor-top-pattern {
        width: 300px;
        left: -40px;
        top: -20px;
        height: 500px;
    }

    .line-decor-v-1 { height: 400px; }
    .line-decor-v-2 { height: 280px; }
    .line-decor-h-1 { width: 300px; }
    .line-decor-h-2 { width: 220px; }

    .decor-bottom-corner {
        right: -40px;
        bottom: -60px;
    }

    .decor-bottom-corner::before {
        left: -320px;
    }
}

@media (max-width: 991px) {
    .team-rows-container {
        gap: 60px;
        padding: 0 20px;
    }

    .member-row,
    .member-row:nth-child(even) {
        flex-direction: column-reverse;
        align-items: center;
        padding: 40px 25px;
        min-height: auto;
        gap: 30px;
    }

    .member-photo-box {
        margin: 0;
        width: 100%;
        max-width: 300px;
        height: 340px;
    }

    .member-info-box,
    .member-row:not(:nth-child(even)) .member-info-box,
    .member-row:nth-child(even) .member-info-box {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .reviews-motivation {
        border-right: none;
        padding: 0;
    }

    .motivation-sticky {
        position: static;
        transform: none;
        margin-bottom: 10px;
    }

    .review-item {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    /* 1. Навигация и Шапка */
    header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.98);
    }

    .burger-menu {
        display: flex;
    }

    header .nav-links,
    #navLinks.nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background-color: #ffffff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px 20px;
        box-sizing: border-box;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 10001;
    }

    header .nav-links.active,
    #navLinks.nav-links.active {
        transform: translateX(0);
    }

    header .nav-links a,
    #navLinks.nav-links a {
        margin: 16px 0;
        font-size: 1.5rem;
        font-weight: 600;
        color: #1d1d1f;
        text-decoration: none;
        text-align: center;
    }

    /* 2. О нас и Декорации */
    #about.hero-timeline {
        padding: 120px 20px 80px 20px;
    }

    .line-decor-v-2,
    .line-decor-h-2,
    .decor-top-pattern,
    .decor-bottom-pattern,
    .decor-left-bottom-pattern,
    .decor-right-top-pattern {
        display: none;
    }

    .about-macro-title {
        font-size: 2.6rem;
        letter-spacing: 2px;
    }

    .timeline-card p {
        font-size: 1.45rem;
        line-height: 1.6;
    }

    .handwritten-card p {
        font-size: 1.65rem;
    }

    /* 3. Персонал */
    .team-rows-container {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 16px;
        width: 100%;
    }

    .team-rows-container::-webkit-scrollbar {
        display: none;
    }

    .member-row {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
        flex-shrink: 0;
        scroll-snap-align: center;
        box-sizing: border-box;
    }

    .team-pagination {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin-top: 24px;
    }

    .page-num {
        background: #f0f0f0;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        font-weight: 600;
        color: #555;
        cursor: pointer;
        transition: all 0.25s ease;
    }

    .page-num.active {
        background: #007bff;
        color: #ffffff;
        transform: scale(1.1);
    }

    /* 4. Результаты (Слайдер До/После) */
    .main-gallery-wrapper {
        position: relative;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .main-gallery-wrapper::-webkit-scrollbar {
        display: none;
    }

    .mega-slider-card {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        flex-shrink: 0;
        scroll-snap-align: center;
        box-sizing: border-box;
        margin-bottom: 0;
    }

    .showcase-viewport {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .ba-slider {
        height: 380px;
        touch-action: pan-y;
    }

    .case-info {
        width: 100%;
        max-width: 100%;
        padding: 16px 12px 0 12px;
        text-align: center;
        box-sizing: border-box;
        margin: 0 auto;
    }

    .case-info h3,
    .case-info h4,
    .case-info p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .works-pagination {
        position: relative;
        z-index: 10;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin-top: 12px;
    }

    .works-pagination .page-num {
        background: #f0f0f0;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        font-weight: 600;
        color: #555;
        cursor: pointer;
        transition: all 0.25s ease;
    }

    .works-pagination .page-num.active {
        background: #007bff;
        color: #ffffff;
        transform: scale(1.1);
    }

    .mega-slider-card:nth-child(1) .before-side img { object-position: 60% 50%; transform: scale(1.6) translateY(5%); }
    .mega-slider-card:nth-child(1) .after-side img  { object-position: 85% 50%; transform: scale(1.3) translateY(8%); }

    .mega-slider-card:nth-child(2) .before-side img { object-position: 50% 50%; transform: scale(1.5) translateY(-5%); }
    .mega-slider-card:nth-child(2) .after-side img  { object-position: 65% 50%; transform: scale(1.5) translateY(5%); }

    .mega-slider-card:nth-child(3) .before-side img { object-position: 50% 50%; transform: scale(1.3) translateY(2%); }
    .mega-slider-card:nth-child(3) .after-side img  { object-position: 40% 50%; transform: scale(1.3) translateY(-7%); }

    .mega-slider-card:nth-child(4) .before-side img { object-position: 35% 50%; transform: scale(1.1) translateY(-2%); }
    .mega-slider-card:nth-child(4) .after-side img  { object-position: 43% 50%; transform: scale(1.2) translateY(3%); }

    .mega-slider-card:nth-child(5) .before-side img { object-position: 47% 50%; transform: scale(1.05) translateY(2%); }
    .mega-slider-card:nth-child(5) .after-side img  { object-position: 50% 50%; transform: scale(1.0) translateY(0%); }

    /* 5. Отзывы */
    .reviews-header {
        margin-bottom: 12px;
    }

    .reviews-container {
        display: flex;
        flex-direction: column;
        gap: 24px;
        width: 100%;
    }

    .reviews-container > *:first-child {
        margin-top: -15px;
        padding-top: 0;
    }

    .review-item {
        height: auto;
        min-height: min-content;
        max-height: none;
        overflow: visible;
    }

    .review-text {
        height: auto;
        max-height: none;
        overflow: visible;
        white-space: normal;
        word-break: break-word;
    }

    /* 6. Прайс-лист */
    .price {
        padding: 60px 10px;
    }

    .price-header h2 {
        font-size: 2rem;
    }

    .price-container,
    .price-content-wrapper,
    .price-tab {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .price-sidebar {
        display: none;
    }

    .price-mobile-select {
        display: block;
    }

    .price-dropdown-toggle {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        font-size: 16px;
        font-weight: 600;
        color: #1e293b;
        cursor: pointer;
        position: relative;
        z-index: 21;
        box-sizing: border-box;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .price-dropdown-toggle span {
        pointer-events: none;
    }

    .dropdown-arrow {
        display: inline-block;
        transition: transform 0.3s ease;
        font-size: 12px;
        color: #64748b;
    }

    .price-mobile-select.open .dropdown-arrow {
        transform: rotate(180deg);
    }

    .price-dropdown-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        padding: 8px;
        z-index: 30;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    }

    .price-mobile-select.open .price-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .price-dropdown-menu .category-btn {
        padding: 12px 14px;
        border-radius: 8px;
    }

    .price-content-wrapper {
        padding: 12px 8px;
        border-radius: 16px;
    }

    .price-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 8px;
        margin: 8px 0;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        background: transparent;
        border-bottom: 1px solid #e5e5ea;
        border-radius: 0;
        overflow: hidden;
    }

    .price-item h4 {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 13.5px;
        text-align: left;
        margin: 0;
        line-height: 1.35;
        word-break: break-word;
    }

    .price-item span {
        flex: 0 0 auto;
        font-size: 13.5px;
        font-weight: 600;
        color: #007bff;
        white-space: nowrap;
        text-align: right;
    }

    /* 7. Контакты и Карта */
    .map-wrapper {
        margin-top: 40px;
        border-radius: 24px;
    }

    #map {
        height: 300px;
    }

    #contact.contacts {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    #contact .contacts-grid {
        display: contents;
    }

    #contact h2 {
        order: 1;
        margin-bottom: 0;
    }

    #contact .contact-item:nth-child(1) {
        order: 2;
    }

    #contact .map-wrapper {
        order: 3;
        width: 100%;
        margin: 8px 0;
    }

    #contact #map {
        height: 320px;
        width: 100%;
        border-radius: 16px;
    }

    #contact .contact-item:nth-child(2) {
        order: 4;
    }

    #contact .contact-item:nth-child(3) {
        order: 5;
    }
}

@media (max-width: 480px) {
    .price-item {
        padding: 12px 8px;
        gap: 8px;
    }

    .price-item h4,
    .price-item span {
        font-size: 13px;
    }
}
/*endregion*/