/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Кнопка быстрого звонка */
.call-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #FF6B9D, #FF8E53);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 16px;
}

.call-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.6);
    background: linear-gradient(135deg, #FF8E53, #FF6B9D);
}

.call-button svg {
    width: 24px;
    height: 24px;
}

/* Кнопка "Вверх" */
.scroll-top-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, #FF6B9D, #FF8E53);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.scroll-top-button.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.6);
    background: linear-gradient(135deg, #FF8E53, #FF6B9D);
}

.scroll-top-button svg {
    width: 24px;
    height: 24px;
}

/* Шапка */
.header {
    background: linear-gradient(135deg, #FF6B9D, #FF8E53);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header .container {
    position: relative;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.logo {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: 20px;
    opacity: 0.95;
    font-weight: 300;
}

/* Меню навигации */
.nav-menu {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

/* Кнопка мобильного меню */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 20px;
    right: 10px;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Главная секция */
.hero {
    background: linear-gradient(135deg, #FFB3BA, #FFDFBA);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-text {
    font-size: 22px;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Секции */
section {
    padding: 60px 0;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #FF6B9D, #FF8E53);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* О нас */
.about {
    background: white;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content > p {
    font-size: 18px;
    margin-bottom: 40px;
    color: #555;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature {
    padding: 30px;
    background: #f9f9f9;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #FF6B9D;
}

.feature p {
    color: #666;
    font-size: 16px;
}

/* Галерея */
.gallery {
    background: white;
}

.gallery-slider {
    position: relative;
    max-width: 1000px;
    margin: 40px auto 0;
}

.gallery-main {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: #f5f5f5;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.gallery-slide.active {
    opacity: 1;
    z-index: 1;
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-main-image:active {
    transform: scale(0.98);
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: #FF6B9D;
}

.gallery-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.gallery-btn-prev {
    left: -80px;
}

.gallery-btn-next {
    right: -80px;
}

.gallery-btn svg {
    width: 24px;
    height: 24px;
}

.gallery-thumbnails {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-thumb:hover {
    opacity: 0.8;
    transform: translateY(-3px);
}

.gallery-thumb.active {
    opacity: 1;
    border-color: #FF6B9D;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-counter {
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

/* Полноэкранный просмотр галереи */
.gallery-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
    touch-action: pan-y;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.gallery-fullscreen-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 20px;
}

.gallery-fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.gallery-fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    transition: all 0.3s ease;
    line-height: 1;
}

.gallery-fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.gallery-fullscreen-prev,
.gallery-fullscreen-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.gallery-fullscreen-prev {
    left: 20px;
}

.gallery-fullscreen-next {
    right: 20px;
}

.gallery-fullscreen-prev:hover,
.gallery-fullscreen-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.gallery-fullscreen-prev svg,
.gallery-fullscreen-next svg {
    width: 24px;
    height: 24px;
}

.gallery-fullscreen-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 20px;
    border-radius: 20px;
    z-index: 2001;
}

/* Прайс */
.pricing {
    background: #f9f9f9;
}

.price-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.price-table thead {
    background: linear-gradient(135deg, #FF6B9D, #FF8E53);
    color: white;
}

.price-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 18px;
}

.price-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 16px;
}

.price-table tbody tr:hover {
    background: #f5f5f5;
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}

.price-note {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 20px;
    font-size: 14px;
}

/* Контакты */
.contacts {
    background: white;
}

.contacts-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #FF6B9D;
}

.contact-details p {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

.contact-details a {
    color: #FF8E53;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #FF6B9D;
    text-decoration: underline;
}

/* Карта */
.map-section {
    background: #f9f9f9;
    padding-bottom: 60px;
}

.map-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    height: 500px;
}

.map {
    width: 100%;
    height: 100%;
}

/* Футер */
.footer {
    background: linear-gradient(135deg, #FF6B9D, #FF8E53);
    color: white;
    text-align: center;
    padding: 30px 0;
}

.footer p {
    margin: 0;
    font-size: 16px;
}

/* Стиль для $POWERED_BY$ только на главной странице */
.powered-by-main {
    margin-top: 15px;
    font-size: 14px;
    opacity: 0.9;
    font-style: italic;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .header {
        padding: 15px 0;
    }

    .logo {
        font-size: 32px;
    }

    .tagline {
        font-size: 18px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, #FF6B9D, #FF8E53);
        flex-direction: column;
        padding: 80px 30px 30px;
        margin: 0;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        font-size: 20px;
    }

    .nav-link::after {
        display: none;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-text {
        font-size: 18px;
        padding: 0 15px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    section {
        padding: 40px 0;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .price-table {
        font-size: 14px;
    }

    .price-table th,
    .price-table td {
        padding: 12px 10px;
    }

    .gallery-main {
        height: 400px;
    }

    .gallery-btn {
        display: none;
    }

    .gallery-thumbnails {
        gap: 10px;
    }

    .gallery-thumb {
        width: 70px;
        height: 70px;
    }

    .gallery-fullscreen-prev,
    .gallery-fullscreen-next {
        width: 45px;
        height: 45px;
    }

    .gallery-fullscreen-prev {
        left: 10px;
    }

    .gallery-fullscreen-next {
        right: 10px;
    }

    .gallery-fullscreen-close {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 25px;
    }

    .gallery-fullscreen-counter {
        top: 10px;
        font-size: 16px;
        padding: 6px 15px;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .call-button {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 14px;
    }

    .call-button span {
        display: none;
    }

    .call-button svg {
        width: 20px;
        height: 20px;
    }

    .scroll-top-button {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
    }

    .scroll-top-button svg {
        width: 20px;
        height: 20px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 40px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: -35px;
        font-size: 35px;
    }

    .map-wrapper {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 28px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-text {
        font-size: 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .price-table th {
        font-size: 14px;
        padding: 10px 8px;
    }

    .price-table td {
        font-size: 12px;
        padding: 10px 8px;
    }

    .call-button {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
        align-items: center;
    }

    .call-button svg {
        width: 24px;
        height: 24px;
    }

    /* Контейнеры на страницах врачей и прайса - такие же широкие как на главной */
    .doctor-content .container,
    .doctor-hero .container {
        max-width: 100%;
        padding: 0 10px;
    }

    /* Дополнительное улучшение таблиц для очень маленьких экранов */
    .doctor-table th,
    .doctor-table td,
    .price-table th,
    .price-table td {
        padding: 8px 6px;
        font-size: 12px;
    }

    .doctor-table td:last-child,
    .price-table td:last-child {
        white-space: nowrap;
        text-align: right;
        min-width: 70px;
        font-size: 13px;
    }
}

/* Стили для страниц врачей */
.doctor-page {
    background: white;
    min-height: 100vh;
}

.doctor-hero {
    background: linear-gradient(135deg, #FF6B9D, #FF8E53);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.doctor-hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.doctor-hero .specialty {
    font-size: 24px;
    opacity: 0.95;
    font-weight: 300;
}

.doctor-hero .container {
    max-width: 1600px;
}

.doctor-content {
    padding: 60px 0;
    max-width: 1600px;
    margin: 0 auto;
}

.doctor-content .container {
    max-width: 1600px;
}

.doctor-bio {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.doctor-bio h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: #FF6B9D;
    text-align: center;
    font-weight: 700;
}

.doctor-bio-content {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.doctor-bio-content p {
    margin-bottom: 20px;
}

.doctor-bio-content p:last-child {
    margin-bottom: 0;
}

.doctor-services {
    margin-bottom: 50px;
}

.doctor-services h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #FF6B9D;
    text-align: center;
    font-weight: 700;
}

.doctor-table-wrapper {
    overflow-x: auto;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.doctor-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.doctor-table thead {
    background: linear-gradient(135deg, #FF6B9D, #FF8E53);
    color: white;
}

.doctor-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 18px;
}

.doctor-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 16px;
    color: #333;
}

.doctor-table tbody tr:hover {
    background: #f9f9f9;
}

.doctor-table tbody tr:last-child td {
    border-bottom: none;
}

.doctor-back-link {
    display: inline-block;
    margin-top: 40px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #FF6B9D, #FF8E53);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.doctor-back-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.6);
    background: linear-gradient(135deg, #FF8E53, #FF6B9D);
}

/* Секция врачей на главной */
.doctors-section {
    background: white;
    padding: 60px 0;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.doctor-card {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    display: block;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.3);
    background: white;
}

.doctor-card-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.doctor-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #FF6B9D;
    font-weight: 700;
}

.doctor-card .specialty {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
}

.doctor-card .services-count {
    font-size: 14px;
    color: #999;
    font-style: italic;
}

@media (max-width: 768px) {
    .doctor-hero h1 {
        font-size: 32px;
    }

    .doctor-hero .specialty {
        font-size: 20px;
    }

    .doctor-content {
        padding: 40px 20px;
    }

    .doctor-bio {
        padding: 30px 20px;
    }

    .doctor-bio h2 {
        font-size: 28px;
    }

    .doctor-bio-content {
        font-size: 16px;
    }

    .doctor-services h2 {
        font-size: 28px;
    }

    .doctor-table th,
    .doctor-table td {
        padding: 12px 10px;
        font-size: 14px;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Контейнеры на страницах врачей и прайса - такие же широкие как на главной */
    .doctor-content .container,
    .doctor-hero .container {
        max-width: 100%;
        padding: 0 15px;
    }

    /* Улучшение таблиц для средних мобильных экранов */
    .doctor-table th,
    .doctor-table td,
    .price-table th,
    .price-table td {
        padding: 10px 8px;
        font-size: 13px;
    }

    .doctor-table td:last-child,
    .price-table td:last-child {
        white-space: nowrap;
        text-align: right;
        min-width: 80px;
    }
}

