/* Основные стили */
:root {
    --primary-color: #4CAF50; /* Светло-зеленый */
    --secondary-color: #3498db; /* Голубой */
    --dark-blue: #1a3c6e;
    --light-blue: #e6f7ff;
    --text-color: #333;
    --light-text: #fff;
    --gray-text: #666;
    --light-gray: #f5f5f5;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--dark-blue);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-blue);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-subtitle {
    font-size: 24px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.text-center {
    text-align: center;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: #3d8b40;
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.btn-secondary:hover {
    background-color: #2980b9;
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.3);
}

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

/* Шапка сайта */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

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

@media (min-width: 992px) {
    .header-content {
        flex-wrap: nowrap;
    }
    .brand {
        flex: 0 0 auto;
    }
    .main-nav {
        flex: 1 1 auto;
        display: flex;
        justify-content: center;
    }
    .header-actions {
        flex: 0 0 auto;
    }
}

.logo {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 50%;
}

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

.brand {
    margin-left: 15px;
}

.brand h1 {
    font-size: 24px;
    margin-bottom: 0;
    color: var(--dark-blue);
}

.brand p {
    font-size: 14px;
    margin-bottom: 0;
    color: var(--secondary-color);
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
}

.phone-link {
    margin-right: 20px;
    color: var(--text-color);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.phone-link i {
    margin-right: 5px;
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 0;
}

/* Главный экран (Hero) */
.hero {
    background-color: #ffffff;
    color: var(--secondary-color);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    padding-right: 50px;
}

.hero-text h2 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--secondary-color);
}

.hero-text p {
    font-size: 22px;
    margin-bottom: 30px;
    font-weight: 600;
    color: var(--secondary-color);
}

.hero-stats {
    display: flex;
    margin-bottom: 30px;
}

.stat-item {
    margin-right: 30px;
    text-align: center;
}

.stat-item i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-item span {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

.stat-item p {
    font-size: 16px;
    margin-bottom: 0;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Акции */
.actions {
    background-color: var(--light-gray);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.action-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.action-card h3 {
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.action-card p {
    margin-bottom: 20px;
    flex-grow: 1;
}

.price {
    margin-bottom: 15px;
}

.old-price {
    text-decoration: line-through;
    color: var(--gray-text);
    margin-right: 10px;
}

.new-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.bonus {
    font-style: italic;
    color: var(--gray-text);
    margin-bottom: 20px;
}

.action-card ul {
    margin-bottom: 20px;
    flex-grow: 1;
}

.action-card li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.action-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Преимущества */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    text-align: center;
    padding: 30px;
    border-radius: var(--border-radius);
    background-color: #fff;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background-color: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.benefit-icon i {
    font-size: 36px;
    color: var(--secondary-color);
}

.benefit-card h3 {
    color: var(--dark-blue);
    margin-bottom: 15px;
}

/* Наши работы */
.works {
    background-color: var(--light-gray);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.work-item {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.work-images {
    display: flex;
    flex-direction: column;
}

.before, .after {
    position: relative;
    padding: 15px;
}

.label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    z-index: 1;
}

.before img, .after img {
    width: 100%;
    border-radius: 4px;
}

/* Наши врачи */
.doctors-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.doctor-card {
    display: flex;
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.doctor-image {
    flex: 0 0 300px;
    overflow: hidden;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-info {
    flex: 1;
    padding: 30px;
}

.doctor-info h3 {
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.doctor-position {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.doctor-experience {
    margin-bottom: 20px;
}

.skills-list {
    margin-bottom: 25px;
}

.skills-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.skills-list i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Сертификаты */
.certificates {
    background-color: var(--light-gray);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
}

.certificate-item {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
}

.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.certificate-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Отзывы */
.reviews-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
}

.review-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    scroll-snap-align: start;
    height: 100%;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.reviewer-info h4 {
    margin-bottom: 5px;
    color: var(--dark-blue);
}

.rating {
    color: #ffc107;
}

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

.review-text {
    font-style: italic;
}

.reviews-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Контакты */
.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item h4 {
    margin-bottom: 5px;
    color: var(--dark-blue);
}

.working-hours {
    grid-column: span 2;
    margin-top: 20px;
}

.contact-map {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Форма записи */
.appointment {
    background-color: var(--light-blue);
}

.appointment-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Подвал (Footer) */
.footer {
    background-color: var(--dark-blue);
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    text-align: center;
}

.footer-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
}

.footer-logo h3 {
    margin-bottom: 5px;
}

.footer-logo p {
    color: var(--secondary-color);
}

.footer h4 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a {
    color: var(--light-text);
}

.footer-nav ul li a:hover {
    color: var(--primary-color);
}

.footer-contacts p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contacts i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-contacts a {
    color: var(--light-text);
}

.social-links {
    display: flex;
    margin-bottom: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: var(--light-text);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Кнопка возврата наверх */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--dark-blue);
    transform: translateY(-5px);
}

/* WhatsApp кнопка */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
    transition: var(--transition);
}

.whatsapp-button i {
    font-size: 30px;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

/* Модальное окно для сертификатов */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 24px;
    cursor: pointer;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .hero-text h2 {
        font-size: 36px;
    }
    
    .doctor-image {
        flex: 0 0 250px;
    }
}

@media (max-width: 992px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    .main-nav ul {
        justify-content: center;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .actions-grid,
    .benefits-grid,
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .doctor-card {
        flex-direction: column;
    }
    
    .doctor-image {
        flex: 0 0 auto;
        height: 300px;
    }
    
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reviews-slider {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contacts-content,
    .contact-info,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .contact-map {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 30px;
    }
    
    .header-content {
        position: relative;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li {
        margin: 10px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-text h2 {
        font-size: 28px;
    }
    
    .hero-text p {
        font-size: 18px;
    }
    
    .stat-item {
        margin-right: 15px;
    }
    
    .stat-item i {
        font-size: 28px;
    }
    
    .stat-item span {
        font-size: 20px;
    }
    
    .actions-grid,
    .benefits-grid,
    .works-grid,
    .certificates-grid,
    .reviews-slider {
        grid-template-columns: 1fr;
    }
    
    .doctor-image {
        height: auto;
    }
    
    .appointment-form {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .header {
        padding: 10px 0;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
    
    .brand h1 {
        font-size: 20px;
    }
    
    .brand p {
        font-size: 12px;
    }
    
    .header-actions {
        flex-direction: column;
        align-items: flex-end;
    }
    
    .phone-link {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero-text h2 {
        font-size: 24px;
    }
    
    .hero-text p {
        font-size: 16px;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 18px;
    }
    
    .doctor-info {
        padding: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .footer-logo img {
        width: 60px;
        height: 60px;
    }
    
    .back-to-top,
    .whatsapp-button {
        width: 40px;
        height: 40px;
    }
    
    .whatsapp-button i {
        font-size: 24px;
    }
}
