/*
Theme Name: Благо-дарю
Description: Тема для центра социального обслуживания "Благо-дарю"
Version: 1.0
Author: Your Name
*/

/* Основные переменные */
:root {
    --primary-color: #2E7D32;
    --primary-light: #4CAF50;
    --primary-dark: #1B5E20;
    --secondary-color: #81C784;
    --accent-color: #66BB6A;
    --text-dark: #212121;
    --text-light: #757575;
    --text-white: #FFFFFF;
    --bg-light: #F5F5F5;
    --bg-white: #FFFFFF;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Базовые стили Owl Carousel (fallback) */
.owl-carousel {
    display: none;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 1;
}

.owl-carousel .owl-stage {
    position: relative;
    -ms-touch-action: pan-Y;
    touch-action: manipulation;
    -moz-backface-visibility: hidden;
}

.owl-carousel .owl-stage:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}

.owl-carousel .owl-stage-outer {
    position: relative;
    overflow: hidden;
    -webkit-transform: translate3d(0, 0, 0);
}

.owl-carousel .owl-item,
.owl-carousel .owl-wrapper {
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
}

.owl-carousel .owl-item {
    position: relative;
    min-height: 1px;
    float: left;
    -webkit-backface-visibility: hidden;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.owl-carousel .owl-item img {
    display: block;
    width: 100%;
}

.owl-carousel .owl-nav.disabled,
.owl-carousel .owl-dots.disabled {
    display: none;
}

.owl-carousel .owl-nav .owl-prev,
.owl-carousel .owl-nav .owl-next,
.owl-carousel .owl-dot {
    cursor: pointer;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next,
.owl-carousel button.owl-dot {
    background: none;
    color: inherit;
    border: none;
    padding: 0 !important;
    font: inherit;
}

.owl-carousel.owl-loaded {
    display: block;
}

.owl-carousel.owl-loading {
    opacity: 0;
    display: block;
}

.owl-carousel.owl-hidden {
    opacity: 0;
}

.owl-carousel.owl-refresh .owl-item {
    visibility: hidden;
}

.owl-carousel.owl-drag .owl-item {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.owl-carousel.owl-grab {
    cursor: move;
    cursor: grab;
}

.owl-carousel.owl-rtl {
    direction: rtl;
}

.owl-carousel.owl-rtl .owl-item {
    float: right;
}

/* Навигация */
.owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    pointer-events: none;
}

.owl-nav .owl-prev,
.owl-nav .owl-next {
    position: absolute;
    top: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    pointer-events: auto;
    transition: var(--transition);
}

.owl-nav .owl-prev:hover,
.owl-nav .owl-next:hover {
    background: var(--primary-dark);
}

.owl-nav .owl-prev {
    left: -25px;
}

.owl-nav .owl-next {
    right: -25px;
}

/* Точки */
.owl-dots {
    text-align: center;
    margin-top: 20px;
}

.owl-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.owl-dot.active {
    background: var(--primary-color);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

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

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

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

.btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Заголовки секций */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* Шапка */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.header__logo h1 {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 1rem;
    line-height: 1.2;
    width: 200px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.header__menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.header__menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.header__contact {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-end;
}

.header__phone a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.header__phone a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Главный блок */
.hero {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 25%, #1B5E20 50%, #0D4A14 75%, #003300 100%);
    color: var(--text-white);
    padding: 8rem 0 4rem;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(76, 175, 80, 0.1) 0%, rgba(46, 125, 50, 0.1) 50%, rgba(27, 94, 32, 0.1) 100%);
    pointer-events: none;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero__text h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero__text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero__image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
}

/* Услуги */
.services {
    padding: 5rem 0;
    background: var(--bg-light);
}

.services__grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

/* Контейнер для каждой строки */
.service-row {
    display: flex;
    gap: 2rem;
    width: 100%;
}

/* Первая строка: 65% слева, 35% справа */
.service-row:first-child .service-card:first-child {
    width: 65%;
}

.service-row:first-child .service-card:last-child {
    width: 35%;
}

/* Вторая строка: 35% слева, 65% справа */
.service-row:nth-child(2) .service-card:first-child {
    width: 35%;
}

.service-row:nth-child(2) .service-card:last-child {
    width: 65%;
}

/* Третья строка: 65% слева, 35% справа */
.service-row:nth-child(3) .service-card:first-child {
    width: 65%;
}

.service-row:nth-child(3) .service-card:last-child {
    width: 35%;
}

/* Четвертая строка: 35% слева, 65% справа */
.service-row:nth-child(4) .service-card:first-child {
    width: 35%;
}

.service-row:nth-child(4) .service-card:last-child {
    width: 65%;
}

/* Общий паттерн для всех строк */
.service-row:nth-child(odd) .service-card:first-child {
    width: 65%;
}

.service-row:nth-child(odd) .service-card:last-child {
    width: 35%;
}

.service-row:nth-child(even) .service-card:first-child {
    width: 35%;
}

.service-row:nth-child(even) .service-card:last-child {
    width: 65%;
}

.service-card {
    background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 50%, #d4f0d4 100%);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid #e0f0e0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, #e8f5e8 0%, #d4f0d4 50%, #c0ebc0 100%);
}

.service-card__content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card__header {
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.service-card__price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.price-period {
    font-size: 1rem;
    color: var(--text-light);
}

.service-card__description h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.service-card__description p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Преимущества */
.advantages {
    padding: 5rem 0;
    background: var(--bg-white);
}

.advantages__slider {
    margin-top: 3rem;
}

.advantage-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 0 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.advantage-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.advantage-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.advantage-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Как мы работаем */
.how-we-work {
    padding: 5rem 0;
    background: var(--bg-light);
}

.how-we-work__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
}

.step__number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.step p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Сиделки */
.caregivers {
    padding: 5rem 0;
    background: var(--bg-white);
}

.caregivers__slider {
    margin-top: 3rem;
}

.caregiver-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 0 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.caregiver-card__photo {
    height: 250px;
    overflow: hidden;
}

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

.caregiver-card__info {
    padding: 1.5rem;
}

.caregiver-card__info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.caregiver-card__age,
.caregiver-card__experience,
.caregiver-card__specialization {
    margin: 0.3rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Отзывы */
.reviews {
    padding: 5rem 0;
    background: var(--bg-light);
}

.reviews__slider {
    margin-top: 3rem;
}

.review-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 0 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.review-card__content {
    margin-bottom: 1.5rem;
}

.review-card__content p {
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 1.1rem;
}

.review-card__author h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

/* Футер */
.footer {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: 3rem 0 1rem;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__section h3,
.footer__section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer__section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.footer__social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    color: var(--text-white);
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--secondary-color);
}

.footer__contact p {
    margin: 0.5rem 0;
    color: var(--text-white);
}

.footer__contact a {
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition);
}

.footer__contact a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer__section p {
    color: var(--text-white);
    margin: 0.5rem 0;
    line-height: 1.5;
}

.footer__section strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.footer__services {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__services li {
    margin: 0.5rem 0;
}

.footer__services a {
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition);
}

.footer__services a:hover {
    color: var(--secondary-color);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Owl Carousel кастомизация */
.owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    pointer-events: none;
}

.owl-prev,
.owl-next {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--primary-color) !important;
    color: var(--text-white) !important;
    border-radius: 50% !important;
    font-size: 1.5rem !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    pointer-events: auto;
}

.owl-prev {
    left: -25px;
}

.owl-next {
    right: -25px;
}

.owl-prev:hover,
.owl-next:hover {
    background: var(--primary-dark) !important;
    transform: scale(1.1);
}

.owl-dots {
    text-align: center;
    margin-top: 2rem;
}

.owl-dot {
    width: 12px;
    height: 12px;
    background: var(--secondary-color) !important;
    border-radius: 50%;
    margin: 0 5px;
    transition: var(--transition);
}

.owl-dot.active {
    background: var(--primary-color) !important;
    transform: scale(1.2);
}

/* Адаптивность */
@media (max-width: 960px) {
    .header__menu {
        display: none;
    }

    .header__logo h1 {
        font-size: 1.1rem;
        align-items: center;
        gap: 0.5rem;
    }

    .logo-icon {
        width: 80px;
        height: 80px;
    }

    .header__contact {
        font-size: 0.8rem;
        gap: 0.2rem;
    }

    .header__phone a {
        font-size: 0.8rem;
    }

    .hero__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

        .hero__text h2 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services__grid {
        gap: 1rem;
    }

    .service-row {
        flex-direction: column;
        gap: 1rem;
    }

    .service-card {
        width: 100% !important;
        margin: 0 !important;
    }

    .service-row .service-card:first-child,
    .service-row .service-card:last-child {
        width: 100% !important;
    }

    .how-we-work__steps {
        grid-template-columns: 1fr;
    }

    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .owl-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .hero__text h2 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .service-card,
    .advantage-card,
    .step,
    .review-card {
        padding: 1.5rem;
    }
}
