/*
Theme Name: Доктор Кулагина
Theme URI: https://вашсайт.com
Author: Ваше имя
Author URI: https://вашсайт.com
Description: Тема для врача-офтальмолога с управлением отзывами и видео
Version: 1.0.0
License: GPL v2 or later
Text Domain: doctor-theme
*/

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Roboto', Arial, sans-serif;
    background: #f5f7fa;
    color: #1e2a3a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
    padding: 0;
}
img {
    max-width: 100%;
    display: block;
    height: auto;
}
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-block;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 44px;
    border-radius: 50px;
    background: #4a90a4;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: 0.25s ease;
    letter-spacing: 0.3px;
}
.btn:hover {
    background: #3a7a8c;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(74, 144, 164, 0.25);
}
.btn-small {
    font-size: 13px;
    padding: 8px 24px;
    border-radius: 50px;
    background: #4a90a4;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 600;
}
.btn-small:hover {
    background: #3a7a8c;
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 22px 0;
    z-index: 20;
    pointer-events: none;
}
.navbar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    pointer-events: auto;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}
.nav-right .phone {
    font-weight: 500;
    font-size: 15px;
    color: #1e2a3a;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f0f4f8 0%, #e6edf3 100%);
    padding: 100px 0 60px;
    position: relative;
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.hero-content .badge-hero {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #4a90a4;
    background: rgba(74, 144, 164, 0.1);
    padding: 2px 10px;
    border-radius: 40px;
    margin-bottom: 16px;
}
.hero-content h1 {
    font-size: 64px;
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -1px;
    color: #1a2634;
}
.hero-content h1 strong {
    font-weight: 500;
    color: #4a90a4;
}
.hero-content .sub {
    font-size: 17px;
    color: #2c3e50;
    margin: 18px 0 22px;
    max-width: 500px;
    line-height: 1.8;
}
.hero-content .sub .highlight {
    color: #4a90a4;
    font-weight: 600;
}
.hero-content .sub p {
    margin-bottom: 12px;
}
.hero-content .sub p:last-child {
    margin-bottom: 0;
}
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-image .photo-frame {
    width: 100%;
    max-width: 420px;
    transition: 0.3s;
}
.hero-image .photo-frame:hover {
    transform: scale(1.01);
}
.hero-image .photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
}

.hero-mobile-second-text {
    display: none;
}
.hero-mobile-btn {
    display: none;
}

/* ===== ABOUT ===== */
.about-section {
    padding: 70px 0 60px;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.about-section .badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #4a90a4;
    background: rgba(74, 144, 164, 0.08);
    padding: 4px 18px;
    border-radius: 40px;
    margin-bottom: 12px;
}
.about-section h2 {
    font-size: 44px;
    font-weight: 300;
    color: #1a2634;
    line-height: 1.15;
    margin-bottom: 18px;
}
.about-section h2 strong {
    font-weight: 500;
    color: #4a90a4;
}
.about-section p {
    font-size: 18px;
    color: #3d5266;
    line-height: 1.8;
    margin-bottom: 18px;
}
.about-section p strong {
    color: #1a2634;
    font-weight: 500;
}
.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 80px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}
.stats .stat .num {
    font-size: 48px;
    font-weight: 300;
    color: #4a90a4;
    line-height: 1;
}
.stats .stat .lbl {
    font-size: 15px;
    color: #6a7e92;
    margin-top: 4px;
}

/* ===== SERVICES ===== */
.services-section {
    padding: 50px 0 70px;
    background: #fff;
}
.services-section .badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #4a90a4;
    background: rgba(74, 144, 164, 0.08);
    padding: 4px 18px;
    border-radius: 40px;
    margin-bottom: 12px;
}
.services-section h2 {
    font-size: 38px;
    font-weight: 300;
    color: #1a2634;
    margin-bottom: 30px;
}
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid #e6edf3;
    border-left: 1px solid #e6edf3;
}
.service-item {
    padding: 28px 30px;
    border-right: 1px solid #e6edf3;
    border-bottom: 1px solid #e6edf3;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    transition: 0.2s;
    background: #fff;
}
.service-item:hover {
    background: #f8fafc;
}
.service-item .number {
    font-size: 18px;
    font-weight: 400;
    color: #c0cbd6;
    min-width: 40px;
    line-height: 1.4;
    letter-spacing: 0.5px;
}
.service-item .text {
    font-size: 16px;
    color: #1a2634;
    line-height: 1.5;
}

/* ===== REVIEWS ===== */
.reviews-section {
    padding: 60px 0 70px;
    background: #f5f7fa;
}
.reviews-section .badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #4a90a4;
    background: rgba(74, 144, 164, 0.08);
    padding: 4px 18px;
    border-radius: 40px;
    margin-bottom: 12px;
}
.reviews-section h2 {
    font-size: 38px;
    font-weight: 300;
    color: #1a2634;
    margin-bottom: 32px;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.review-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px 26px 30px;
    border: 1px solid #e6edf3;
    transition: 0.25s;
}
.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}
.review-card .stars {
    color: #f5b342;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.review-card .review-text {
    font-size: 16px;
    line-height: 1.7;
    color: #2c3e50;
    margin-bottom: 16px;
}
.review-card .review-author {
    font-weight: 500;
    color: #1a2634;
    font-size: 15px;
}
.review-card .review-author span {
    font-weight: 400;
    color: #6a7e92;
    font-size: 13px;
    display: block;
    margin-top: 2px;
}

/* ===== VIDEO ===== */
.video-section {
    padding: 30px 0 70px;
    background: #f5f7fa;
}
.video-section .badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #4a90a4;
    background: rgba(74, 144, 164, 0.08);
    padding: 4px 18px;
    border-radius: 40px;
    margin-bottom: 12px;
}
.video-section h2 {
    font-size: 38px;
    font-weight: 300;
    color: #1a2634;
    margin-bottom: 24px;
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.video-block {
    background: #fff;
    border-radius: 24px;
    padding: 20px;
    border: 1px solid #e6edf3;
    transition: 0.25s;
}
.video-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}
.video-block .video-wrapper {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #1a2634;
    position: relative;
}
.video-block .video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.video-block .video-wrapper .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(74, 144, 164, 0.9);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    padding-left: 6px;
}
.video-block .video-wrapper .play-btn:hover {
    background: #4a90a4;
    transform: translate(-50%, -50%) scale(1.05);
}
.video-block .video-title {
    font-size: 15px;
    font-weight: 500;
    color: #1a2634;
    margin-top: 12px;
    text-align: center;
}

/* ===== FOOTER ===== */
.footer {
    background: #eef2f6;
    color: #1e2a3a;
    padding: 50px 0 28px;
    border-top: 1px solid #e0e6ec;
}
.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.footer-left h2 {
    font-size: 30px;
    font-weight: 300;
    color: #1a2634;
    letter-spacing: -0.5px;
}
.footer-left .phone-lg {
    font-size: 26px;
    font-weight: 300;
    color: #4a90a4;
    margin-top: 2px;
}
.footer-left .phone-lg a {
    color: #4a90a4;
    transition: 0.2s;
}
.footer-left .phone-lg a:hover {
    color: #3a7a8c;
}
.footer-left .address {
    font-size: 14px;
    color: #6a7e92;
    margin-top: 2px;
}
.footer-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
.footer-right .btn {
    background: #4a90a4;
}
.footer-right .btn:hover {
    background: #3a7a8c;
}
.social-links {
    display: flex;
    gap: 10px;
    align-items: center;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #d0d8e0;
    transition: 0.25s;
}
.social-links a:hover {
    border-color: #3979cf;
    background: rgba(57, 121, 207, 0.08);
    transform: translateY(-2px);
}
.social-links svg {
    width: 26px;
    height: 26px;
}
.footer-bottom {
    border-top: 1px solid #dce2e8;
    margin-top: 28px;
    padding-top: 20px;
    display: flex;
    justify-content: center;
    font-size: 13px;
    color: #7a8a9a;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    .hero-content .sub {
        display: none;
    }
    .hero-content .btn {
        display: none;
    }
    .hero-mobile-second-text {
        display: block;
    }
    .hero-mobile-btn {
        display: inline-block;
        margin-top: 8px;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .hero-content .badge-hero {
        order: 1;
    }
    .hero-content h1 {
        order: 2;
    }
    .hero-mobile-first-text {
        order: 3;
        max-width: 100%;
        margin: 0 auto 10px;
        font-size: 17px;
        color: #2c3e50;
        line-height: 1.8;
    }
    .hero-mobile-first-text .highlight {
        color: #4a90a4;
        font-weight: 600;
    }
    .hero-mobile-first-text p {
        margin-bottom: 12px;
    }
    .hero-mobile-first-text p:last-child {
        margin-bottom: 0;
    }
    .hero-image {
        order: 4;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .hero-image .photo-frame {
        max-width: 300px;
        margin: 0 auto;
    }
    .hero-mobile-second-text {
        order: 5;
        max-width: 100%;
        margin: 10px auto 0;
        font-size: 17px;
        color: #2c3e50;
        line-height: 1.8;
    }
    .hero-mobile-second-text .highlight {
        color: #4a90a4;
        font-weight: 600;
    }
    .hero-mobile-second-text p {
        margin-bottom: 12px;
    }
    .hero-mobile-second-text p:last-child {
        margin-bottom: 0;
    }
    .hero-mobile-btn {
        order: 6;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .reviews-grid {
        grid-template-columns: 1fr 1fr;
    }
    .video-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer .container {
        flex-direction: column;
        text-align: center;
    }
    .footer-right {
        justify-content: center;
    }
    .navbar .container {
        justify-content: center;
    }
    .about-section h2 {
        font-size: 34px;
    }
    .about-section p {
        font-size: 17px;
    }
    .services-section h2,
    .video-section h2,
    .reviews-section h2 {
        font-size: 30px;
    }
    .stats {
        gap: 24px 15px;
    }
    .stats .stat .num {
        font-size: 38px;
    }
}

@media (max-width: 600px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 34px;
    }
    .btn {
        padding: 12px 28px;
        font-size: 14px;
    }
    .footer-left h2 {
        font-size: 24px;
    }
    .footer-left .phone-lg {
        font-size: 20px;
    }
    .service-item {
        padding: 18px 16px;
        gap: 12px;
    }
    .service-item .number {
        font-size: 15px;
        min-width: 30px;
    }
    .service-item .text {
        font-size: 14px;
    }
    .about-section h2 {
        font-size: 28px;
    }
    .about-section p {
        font-size: 16px;
    }
    .stats .stat .num {
        font-size: 32px;
    }
    .social-links a {
        width: 38px;
        height: 38px;
    }
    .social-links svg {
        width: 22px;
        height: 22px;
    }
    .hero-mobile-first-text,
    .hero-mobile-second-text {
        font-size: 15px;
    }
}

/* ===== КАРУСЕЛЬ ===== */
.carousel-section {
    padding: 60px 0 70px;
    background: #f5f7fa;
    overflow: hidden;
    position: relative;
}

.carousel-section .badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #4a90a4;
    background: rgba(74, 144, 164, 0.08);
    padding: 4px 18px;
    border-radius: 40px;
    margin-bottom: 12px;
    margin-left: 50px;
}

.carousel-section h2 {
    font-size: 38px;
    font-weight: 300;
    color: #1a2634;
    margin-bottom: 32px;
    margin-left: 50px;
}

.carousel-section .carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
}

.carousel-section .carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
    will-change: transform;
    align-items: stretch;
}

/* ===== ВИДЕО В КАРУСЕЛИ ===== */
.carousel-section .video-block {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 280px;
    background: #fff;
    border-radius: 24px;
    padding: 20px;
    border: 1px solid #e6edf3;
    transition: 0.25s;
}

.carousel-section .video-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

.carousel-section .video-block .video-wrapper {
    aspect-ratio: 4/5;
    max-height: 420px;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    position: relative;
    width: 100%;
}

.carousel-section .video-block .video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-section .video-block .video-wrapper .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(74, 144, 164, 0.9);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    padding-left: 5px;
    z-index: 10;
    transition: 0.3s;
}

.carousel-section .video-block .video-wrapper .play-btn:hover {
    background: #4a90a4;
    transform: translate(-50%, -50%) scale(1.05);
}

.carousel-section .video-block .video-title {
    font-size: 14px;
    font-weight: 500;
    color: #1a2634;
    margin-top: 10px;
    text-align: center;
}

/* ===== ОТЗЫВЫ В КАРУСЕЛИ ===== */
.carousel-section .review-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 280px;
    max-width: 100%;
    background: #fff;
    border-radius: 20px;
    padding: 24px 22px 26px;
    border: 1px solid #e6edf3;
    transition: 0.25s;
    display: flex;
    flex-direction: column;
    height: 320px;
}

.carousel-section .review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

.carousel-section .review-card .stars {
    color: #f5b342;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.carousel-section .review-card .review-text {
    font-size: 15px;
    line-height: 1.6;
    color: #2c3e50;
    margin-bottom: 12px;
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

/* Стилизация скролла */
.carousel-section .review-card .review-text::-webkit-scrollbar {
    width: 4px;
}

.carousel-section .review-card .review-text::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.carousel-section .review-card .review-text::-webkit-scrollbar-thumb {
    background: #4a90a4;
    border-radius: 10px;
}

.carousel-section .review-card .review-author {
    font-weight: 500;
    color: #1a2634;
    font-size: 14px;
    flex-shrink: 0;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.carousel-section .review-card .review-author span {
    font-weight: 400;
    color: #6a7e92;
    font-size: 12px;
    display: block;
    margin-top: 2px;
}

/* ===== КНОПКИ НАВИГАЦИИ (ПО БОКАМ) ===== */
.carousel-section .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #d0d8e0;
    background: #fff;
    cursor: pointer;
    font-size: 22px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.carousel-section .carousel-btn:hover {
    border-color: #4a90a4;
    background: #4a90a4;
    color: #fff;
    box-shadow: 0 4px 16px rgba(74,144,164,0.3);
}

.carousel-section .carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: none;
}

.carousel-section .carousel-btn:disabled:hover {
    border-color: #d0d8e0;
    background: #fff;
    color: inherit;
}

.carousel-section .carousel-btn.carousel-prev {
    left: 0;
}

.carousel-section .carousel-btn.carousel-next {
    right: 0;
}

/* ===== ТОЧКИ ===== */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d8e0;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    padding: 0;
}

.carousel-dots .dot.active {
    background: #4a90a4;
    width: 30px;
    border-radius: 5px;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 900px) {
    .carousel-section .video-block,
    .carousel-section .review-card {
        flex: 0 0 calc(50% - 15px);
        min-width: 200px;
    }
    
    .carousel-section .review-card {
        height: 300px;
    }
    
    .carousel-section .carousel-wrapper {
        padding: 0 40px;
    }
    
    .carousel-section .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .carousel-section .video-block,
    .carousel-section .review-card {
        flex: 0 0 calc(100% - 0px);
        min-width: 0;
    }
    
    .carousel-section .review-card {
        height: 280px;
        padding: 20px 18px 22px;
    }
    
    .carousel-section .carousel-wrapper {
        padding: 0 35px;
    }
    
    .carousel-section .carousel-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    
    .carousel-section .video-block .video-wrapper {
        max-height: 380px;
    }
    
    .carousel-section .review-card .review-text {
        font-size: 14px;
        max-height: 140px;
    }
}


/* ===== СОЦИАЛЬНЫЕ КНОПКИ (В ФУТЕРЕ) ===== */
.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    position: relative;
}

.footer-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    position: relative;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
    /* Убираем absolute */
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    border-radius: 15%;
    background: #000000;
    text-decoration: none;
    border: none;
}

.social-links a:hover {
    background: #2c241e;
    transform: scale(1.08);
}

.social-links a svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: #ffffff;
}