/* ======================== ПЕРЕМЕННЫЕ (В САМОМ НАЧАЛЕ!) ======================== */
:root {
    --primary-color: #1A5276;
    --primary-hover: #154360;
    --primary-light: #EBF5FB;
    --gray-text: #5D6D7E;
}

/* ======================== БАЗОВЫЕ СТИЛИ ======================== */
body {
    font-family: 'Inter', sans-serif;
    background-color: #fcfcfc;
}

/* ======================== КНОПКИ ======================== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 82, 118, 0.3);
}
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 30px;
    padding: 12px 32px;
    font-weight: 600;
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ======================== ЗАГОЛОВКИ ======================== */
.section-title {
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    color: var(--gray-text);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
}

/* ======================== НАВБАР ======================== */
.navbar-brand-custom {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar-brand-custom .badge-master {
    font-size: 0.7rem;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}
.navbar-brand-custom:hover {
    color: var(--primary-hover);
}

/* Выпадающее меню при наведении (десктоп) */
@media (min-width: 992px) {
    .dropdown-hover {
        position: relative;
    }
    .dropdown-hover:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
    .dropdown-hover .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        min-width: 220px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        border: 1px solid #f0f0f0;
        border-radius: 12px;
        padding: 8px 0;
    }
}

/* Выпадающее меню на мобильных */
@media (max-width: 991px) {
    .dropdown-hover .dropdown-menu {
        display: none;
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
    }
    .dropdown-hover.show .dropdown-menu {
        display: block;
    }
}

/* ======================== ГЕРОЙ (главная) ======================== */
.hero-section {
    background: linear-gradient(135deg, #1A5276 0%, #2E86C1 100%);
    padding: 80px 0;
    color: white;
    border-radius: 0 0 50px 50px;
}
.hero-section h1 {
    font-weight: 800;
    font-size: 3.2rem;
    line-height: 1.2;
}

/* ======================== ГЕРОЙ (внутренние страницы) ======================== */
.services-hero {
    background: linear-gradient(135deg, #1A5276 0%, #2E86C1 100%);
    padding: 60px 0 40px;
    color: white;
    border-radius: 0 0 50px 50px;
}
.services-hero h1 {
    font-weight: 800;
    font-size: 2.8rem;
}

/* ======================== КАРТОЧКИ ПРОБЛЕМ ======================== */
.problem-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s;
    height: 100%;
}
.problem-card:hover {
    transform: translateY(-4px);
}

/* ======================== КАРТОЧКИ УСЛУГ (главная) ======================== */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.service-card .icon-circle {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 2rem;
    color: var(--primary-color);
}
.service-card .price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ======================== ДЕТАЛЬНЫЕ КАРТОЧКИ УСЛУГ (страница услуг) ======================== */
.service-detail-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
}
.service-detail-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.service-detail-card .service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.service-detail-card .price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
}
.service-detail-card .price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--gray-text);
}
.service-detail-card ul li {
    margin-bottom: 8px;
    color: #444;
}
.service-detail-card ul li i {
    color: var(--primary-color);
}

/* ======================== FAQ ======================== */
.faq-item {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 16px;
}
.faq-item h5 {
    font-weight: 700;
}

/* ======================== ОТЗЫВЫ ======================== */
.review-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    height: 100%;
    transition: transform 0.2s;
}
.review-card:hover {
    transform: translateY(-4px);
}
.review-card .review-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #e9ecef;
}
.review-card .review-body {
    padding: 20px;
}
.review-card .review-body .badge-service {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 20px;
}

/* ======================== ПРЕИМУЩЕСТВА ======================== */
.advantage-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ======================== БЛОК "О МАСТЕРЕ" ======================== */
.master-block {
    background: var(--primary-light);
    border-radius: 24px;
    padding: 40px;
}
.master-block .master-avatar {
    height: 180px;
    border-radius: 18%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ======================== ПОДВАЛ ======================== */
.footer {
    background: #1a1a1a;
    color: #aaa;
    padding: 40px 0 20px;
}
.footer a {
    color: #aaa;
    text-decoration: none;
}
.footer a:hover {
    color: white;
}

/* ======================== АДАПТИВ ======================== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .hero-section {
        padding: 40px 0;
    }
    .services-hero h1 {
        font-size: 2rem;
    }
    .service-detail-card .price {
        font-size: 1.4rem;
    }
    .master-block {
        padding: 24px;
    }
    .master-block .master-avatar {
        width: 120px;
        height: 120px;
    }
    .navbar-brand-custom {
        font-size: 1.1rem;
    }
    .navbar-brand-custom .badge-master {
        font-size: 0.6rem;
        padding: 2px 8px;
    }
}
.about-hero {
    background: linear-gradient(135deg, #1A5276 0%, #2E86C1 100%);
    padding: 60px 0 40px;
    color: white;
    border-radius: 0 0 50px 50px;
}

.about-hero h1 {
    font-weight: 800;
    font-size: 2.8rem;
}

.about-avatar {

    height: 200px;
    border-radius: 15%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    margin-bottom: 1.5rem;
}

/* СТАТИСТИКА */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    height: 100%;
    transition: transform 0.2s;
    border-top: 4px solid var(--primary-color);
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card .number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-card .label {
    color: var(--gray-text);
    font-weight: 600;
}

/* ТАЙМЛАЙН */
.timeline-item {
    border-left: 3px solid var(--primary-color);
    padding-left: 24px;
    padding-bottom: 30px;
    position: relative;
}

.timeline-item::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: -7px;
    top: 4px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item .year {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* ФИЛОСОФИЯ (ЦЕННОСТИ) */
.value-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    height: 100%;
    transition: transform 0.2s;
}

.value-card:hover {
    transform: translateY(-4px);
}

.value-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-card h5 {
    font-weight: 700;
}

/* МИНИ-ОТЗЫВЫ */
.testimonial-mini {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--primary-color);
}

.testimonial-mini .stars {
    color: #FFB800;
}

@media (max-width: 768px) {
    .carousel-item .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
