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

:root {
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --secondary: #00D4AA;
    --accent: #FF6B6B;
    --dark: #1A1F36;
    --gray: #6B7280;
    --light-gray: #F3F4F6;
    --white: #FFFFFF;
    --shadow: 0 10px 40px rgba(0, 102, 255, 0.1);
    --shadow-hover: 0 20px 60px rgba(0, 102, 255, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Hero Section */
.hero {
    position: relative;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,212,170,0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.specialty-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.heart-icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-text {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    margin: 20px 0 15px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
}

.subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    font-weight: 500;
}

.slogan {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.75);
    font-style: italic;
    font-weight: 400;
}

.hero-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 6px solid rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.8s ease-out 0.4s both;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
/* Скрываем placeholder, когда фото загрузилось */
.image-placeholder {
    display: none !important;
}

.hero-image:hover {
    transform: scale(1.05);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.image-placeholder {
    font-size: 100px;
}

/* Buttons */
.buttons-wrapper {
    width: 100%;
    max-width: 500px;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: slideUp 0.8s ease-out 0.6s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.button-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.button-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.button-label {
    display: block;
    text-align: center;
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 500;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 32px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.4);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
}

.btn-links {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
    flex-direction: column;
    padding: 20px 32px;
}

.btn-links:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.4);
}

.btn small {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 400;
    margin-top: 4px;
}

.icon {
    width: 22px;
    height: 22px;
}

/* Services */
.services {
    padding: 80px 0;
    background: var(--white);
    position: relative;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: -1px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 20px auto 0;
    border-radius: 2px;
}

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

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 102, 255, 0.15);
    border-color: var(--primary);
}

.service-icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.service-item h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
}

/* Reviews */
/* Отзывы с каруселью */
.reviews {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    position: relative;
    overflow: hidden;
}

.reviews-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.reviews-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease;
}

.review-card {
    min-width: 100%;
    flex-shrink: 0;
    background: var(--white);
    padding: 40px 32px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .review-card {
        min-width: calc(50% - 12px);
        min-height: 350px;
    }
}

/* Для планшетов — 1 отзыв */
@media (max-width: 1023px) and (min-width: 768px) {
    .review-card {
        min-width: calc(100% - 0px);
    }
}

/* Для мобильных — 1 отзыв */
@media (max-width: 767px) {
    .review-card {
        min-width: 100%;
    }
    
    .reviews-carousel {
        padding: 20px 50px;
    }
}
.review-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 24px;
    font-size: 80px;
    color: var(--primary);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.review-rating {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.review-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 24px;
    flex: 1;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}
.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--light-gray);
}

.review-author {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

.review-date {
    font-size: 13px;
    color: var(--gray);
}

/* Кнопки навигации */
.reviews-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 70px; /* Увеличили отступы по бокам */
}
.reviews-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease;
}

.review-card {
    min-width: 100%;
    flex-shrink: 0;
    background: var(--white);
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .review-card {
        min-width: calc(50% - 12px);
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.prev-btn {
    left: 10px; /* Сдвинули влево */
}

.next-btn {
    right: 10px; /* Сдвинули вправо */
}


.carousel-btn:hover {
    background: var(--primary);
    color: var(--white);
}


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

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 102, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary);
    width: 32px;
    border-radius: 6px;
}
/* Адаптивность */
@media (max-width: 768px) {
    .reviews-carousel {
        padding: 20px 55px; /* Меньше отступы на мобильных */
    }    
    .review-card {
        padding: 24px;
    }
    
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }    
       
    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .review-text {
        font-size: 14px;
    }
    .prev-btn {
        left: 5px;
    }
    
    .next-btn {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .reviews-carousel {
        padding: 0 45px;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
    }
}
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--secondary) 0%, #00B894 100%);
    color: var(--white);
    padding: 18px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 8px 24px rgba(0, 212, 170, 0.3);
    transition: all 0.3s ease;
}

.btn-more:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 212, 170, 0.4);
}

.btn-more span {
    font-size: 24px;
}

.prodoktors-badge {
    display: block;
    text-align: center;
    margin: 30px auto;
    max-width: 220px;
    transition: transform 0.3s ease;
}

.prodoktors-badge:hover {
    transform: scale(1.05);
}

.prodoktors-badge img {
    width: 100%;
    height: auto;
}

/* Social */
.social {
    padding: 80px 0;
    background: var(--white);
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 22px 32px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    color: var(--white);
    letter-spacing: 0.5px;
}

.social-btn svg {
    width: 26px;
    height: 26px;
}

.instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 8px 24px rgba(220, 39, 67, 0.3);
}

.instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(220, 39, 67, 0.4);
}

.prodoctorov {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
}

.prodoctorov:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.4);
}

.meta-warning {
    text-align: center;
    font-size: 12px;
    color: var(--gray);
    margin-top: 30px;
    font-style: italic;
}

/* Footer */
.footer {
    padding: 50px 0;
    background: var(--dark);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

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

.footer a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--white);
}

.disclaimer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    max-width: 600px;
    margin: 30px auto 0;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .subtitle {
        font-size: 17px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .hero-image {
        width: 180px;
        height: 180px;
    }
    
    .image-placeholder {
        font-size: 80px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-slider {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 16px 24px;
        font-size: 15px;
    }
    
    .review-text {
        font-size: 14px;
    }
}

/* Scroll animations */
.service-item, .review-card, .social-btn {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }
.service-item:nth-child(5) { animation-delay: 0.5s; }
.service-item:nth-child(6) { animation-delay: 0.6s; }
.service-item:nth-child(7) { animation-delay: 0.7s; }
.service-item:nth-child(8) { animation-delay: 0.8s; }
.service-item:nth-child(9) { animation-delay: 0.9s; }

.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }

.social-btn:nth-child(1) { animation-delay: 0.1s; }
.social-btn:nth-child(2) { animation-delay: 0.2s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Улучшения для кнопки отзывов */
.more-reviews {
    text-align: center;
    margin: 40px 0 20px;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--secondary) 0%, #00B894 100%);
    color: var(--white);
    padding: 18px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 8px 24px rgba(0, 212, 170, 0.3);
    transition: all 0.3s ease;
}

.btn-more:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 212, 170, 0.4);
}

.btn-more span {
    font-size: 24px;
}

/* Логотип ПроДокторов */
.prodoktors-badge {
    display: block;
    text-align: center;
    margin: 30px auto;
    max-width: 220px;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.prodoktors-badge:hover {
    transform: scale(1.05);
    opacity: 1;
}

.prodoktors-badge img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Футер */
.footer {
    padding: 50px 0;
    background: var(--dark);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

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

.footer a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

.footer a:hover {
    color: var(--white);
}

.footer a:hover::after {
    width: 100%;
}

.disclaimer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    max-width: 600px;
    margin: 30px auto 0;
    line-height: 1.8;
}
/* Исправленный футер */
.footer {
    padding: 60px 0 40px;
    background: var(--dark);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-made {
    font-size: 16px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-made a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.footer-made a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.footer-made a:hover {
    color: var(--white);
}

.footer-made a:hover::after {
    width: 100%;
}

.footer-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 25px auto;
    border-radius: 2px;
}

.disclaimer {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    margin: 0;
}

.disclaimer br {
    margin-bottom: 8px;
}
/* Новые услуги с dropdown - улучшенный дизайн */
.services-new {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

.services-dropdown {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.competence-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.competence-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: height 0.3s ease;
}

.competence-therapy::before {
    background: linear-gradient(90deg, #0066FF 0%, #0052CC 100%);
}

.competence-ultrasound::before {
    background: linear-gradient(90deg, #00D4AA 0%, #00B894 100%);
}

.competence-card:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.competence-header {
    display: flex;
    align-items: stretch;
}

.competence-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    font-size: 48px;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.competence-therapy .competence-number {
    color: rgba(0, 102, 255, 0.1);
}

.competence-ultrasound .competence-number {
    color: rgba(0, 212, 170, 0.1);
}

.competence-info {
    flex: 1;
}

.dropdown-btn {
    width: 100%;
    padding: 28px 32px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.dropdown-btn:hover {
    background: rgba(0, 0, 0, 0.02);
}

.dropdown-btn.active {
    background: rgba(0, 0, 0, 0.03);
}

.competence-therapy .dropdown-btn.active {
    background: rgba(0, 102, 255, 0.05);
}

.competence-ultrasound .dropdown-btn.active {
    background: rgba(0, 212, 170, 0.05);
}

.btn-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.btn-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.btn-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.btn-subtext {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
}

.competence-therapy .btn-text {
    color: #0066FF;
}

.competence-ultrasound .btn-text {
    color: #00B894;
}

.dropdown-arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
    opacity: 0.4;
    flex-shrink: 0;
}

.dropdown-btn.active .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 0.8;
}
.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease;
    background: var(--white);
}

.dropdown-content.active {
    max-height: 1500px; /* Увеличили с 800px */
    overflow: visible;   /* Разрешаем показ содержимого */
}

.dropdown-inner {
    padding: 0 32px 32px 112px;
}


.dropdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dropdown-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.competence-therapy .dropdown-list li {
    border-left-color: #0066FF;
}

.competence-ultrasound .dropdown-list li {
    border-left-color: #00D4AA;
}

.dropdown-list li:hover {
    background: #f0f4f8;
    transform: translateX(5px);
}

.list-icon {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1.5;
}

.list-text {
    font-size: 15px;
    color: var(--dark);
    line-height: 1.6;
    flex: 1;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .competence-header {
        flex-direction: column;
    }
    
    .competence-number {
        width: 100%;
        height: 60px;
        font-size: 36px;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .dropdown-btn {
        padding: 24px 20px;
        gap: 16px;
    }
    
    .btn-icon {
        font-size: 28px;
    }
    
    .btn-text {
        font-size: 18px;
    }
    
    .dropdown-inner {
        padding: 0 20px 24px 20px;
    }
    
    .dropdown-list li {
        padding: 12px 16px;
    }
    
    .list-icon {
        font-size: 18px;
    }
    
    .list-text {
        font-size: 14px;
    }
        .dropdown-inner {
        padding: 0 20px 24px 20px;
    }
    
    .dropdown-list {
        gap: 12px; /* Уменьшили отступы */
    }
    
    .dropdown-list li {
        padding: 14px 16px; /* Чуть меньше padding */
        font-size: 14px;    /* Чуть меньше шрифт */
        line-height: 1.5;   /* Чуть компактнее строки */
    }
    
    .list-text {
        font-size: 14px;
        line-height: 1.5;
    }
}
/* Достижения и награды */
.achievements {
    padding: 80px 0;
    background: var(--white);
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.award-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    padding: 40px 24px 32px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.award-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.award-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 102, 255, 0.15);
}

.award-card:hover::before {
    opacity: 1;
}

.award-badge {
    position: relative;
    width: 120px;
    height: 140px;
    margin: 0 auto 24px;
}

.award-ribbon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    clip-path: polygon(50% 100%, 0 30%, 100% 30%);
}

.award-medal {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.award-badge.gold .award-medal {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: 4px solid #FFD700;
}

.award-badge.bronze .award-medal {
    background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
    border: 4px solid #CD7F32;
}

.medal-number {
    font-size: 36px;
    font-weight: 800;
    color: white;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.medal-year {
    font-size: 12px;
    color: white;
    font-weight: 600;
    margin-top: 4px;
}

.award-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.award-place {
    font-size: 16px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
}

.award-link {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.award-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .dropdown-btn {
        padding: 24px 24px;
        font-size: 16px;
    }
    
    .btn-icon {
        font-size: 24px;
    }
    
    .dropdown-content.active {
        padding: 0 24px 24px 24px;
    }
    
    .awards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .award-card {
        padding: 32px 20px 24px;
    }
}
/* Фикс для iOS Safari - предотвращает обрезание */
@supports (-webkit-touch-callout: none) {
    .dropdown-content.active {
        max-height: fit-content;
    }
}

/* Улучшаем скролл на мобильных */
html {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Предотвращаем горизонтальный скролл */
.container {
    max-width: 100%;
    overflow-x: hidden;
}

.competence-card,
.dropdown-list li {
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
}

/* Улучшаем читаемость на маленьких экранах */
@media (max-width: 375px) {
    .btn-text {
        font-size: 16px;
    }
    
    .btn-subtext {
        font-size: 13px;
    }
    
    .dropdown-list li {
        font-size: 13px;
        padding: 12px 14px;
    }
    
    .list-icon {
        font-size: 16px;
    }
}
.hidden { display: none !important; }
