/* Секция «Обо мне» */
.about-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(107, 142, 35, 0.2) 0%, transparent 70%);
    opacity: 0.1;
    z-index: 0;
}

.about-card-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(107, 142, 35, 0.2), var(--olive-dark));
    border-radius: 2px;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--olive);
    transition: width 0.3s ease;
}

.about-card-body:hover .about-title::after { width: 100px; }

.mission-statement {
    background: linear-gradient(135deg, #f0f7e4 0%, #e8f4d9 100%);
    border: 1px solid #c1d89e;
    padding: 2.5rem;
    border-radius: 16px;
    position: relative;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(107, 142, 35, 0.1);
}

.mission-icon {
    background: var(--olive);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 12px rgba(107, 142, 35, 0.3);
}

.mission-statement p {
    color: #2d3748;
    font-style: italic;
    font-weight: 500;
    margin: 0;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .mission-statement {
        padding: 2rem 1.5rem;
        margin: 1.5rem 0;
    }
    .mission-statement p { font-size: 1.1rem; }
    .mission-icon { width: 40px; height: 40px; font-size: 1.2rem; top: -20px; }
}

@media (max-width: 576px) {
    .mission-icon { width: 30px !important; height: 30px !important; font-size: 1rem !important; top: -15px !important; }
}

@media (max-width: 973px) {
    .about-card-content    { flex-direction: column !important; }
    .about-card-body       { width: 100% !important; padding: 2rem !important; }
    .about-card-body::before { display: none; }
    .about-image-container { display: none !important; width: 100% !important; height: 350px; }
    .about-img             { border-radius: 16px 16px 0 0 !important; width: 100%; object-fit: cover; }
    .about-title           { font-size: 2rem; text-align: center; display: block; width: 100%; }
    .about-title::after    { left: 50%; transform: translateX(-50%); }
    .button_about          { text-align: center; }
}

@media (max-width: 768px) {
    .about-card-body       { padding: 1.5rem !important; }
    .about-text-paragraph  { font-size: 1rem !important; }
    .about-image-container { height: 280px; }
}

@media (max-width: 576px) {
    .about-card-body  { padding: 1.2rem !important; }
    .about-title      { font-size: 1.6rem !important; margin-bottom: 1.5rem !important; }
    .btn-consult      { padding: 10px 20px !important; font-size: 0.9rem !important; display: block; text-align: center; margin: 0 auto; }
    .about-image-container { height: 220px; }
}

@media (min-width: 974px) {
    .about-img { clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%); }
}

/* Секция консультаций */
.consult-section {
    background-color: #f9faf5;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(107, 142, 35, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(107, 142, 35, 0.15) 0%, transparent 20%);
}

/* Секция «Отзывы» */
.reviews-section {
    background-image: url('/images/rev.webp');
    background-size: cover;
}

/* Два блока в ряд */
.rev-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.rev-row > * {
    min-width: 0;
}

/* Карусель внутри левой колонки */
.rev-track-outer { overflow: hidden; margin-top: 20px; }

.rev-pair { display: none; }
.rev-pair.active { display: block; }

.rev-carousel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.rev-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
    font-size: 0.8rem;
}

.rev-nav-btn:hover { background: rgba(255, 255, 255, 0.24); }

.rev-dots-wrap {
    display: flex;
    gap: 7px;
    align-items: center;
}

.rev-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.rev-dot.active {
    background: white;
    transform: scale(1.35);
}

/* Карточка отзыва */
.review-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
}

.rev-quote {
    font-size: 2.8rem;
    line-height: 0.9;
    color: var(--olive-light);
    margin-bottom: 12px;
    font-family: Georgia, serif;
}

.rev-text {
    font-size: 0.9rem;
    line-height: 1.75;
    color: #374151;
    flex: 1;
    margin-bottom: 16px;
    font-style: italic;
}

.rev-divider {
    height: 1px;
    background: rgba(107, 142, 35, 0.15);
    margin-bottom: 14px;
}

.rev-source {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    color: var(--olive-medium);
    font-weight: 500;
}

.rev-source i { font-size: 0.85rem; color: var(--olive); }

/* Glass-контейнер независимой платформы */
.rev-platform-wrap {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 32px;
}

.rev-platform-icon {
    font-size: 1.6rem;
    color: var(--olive-light);
    margin-bottom: 14px;
}

.rev-platform-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    line-height: 1.4;
}

.rev-platform-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 20px;
    line-height: 1.6;
}

.rev-platform-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: white;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.rev-platform-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.45);
}

.rev-widget-wrap {
    margin-top: 20px;
    overflow: hidden;
    width: 100%;
}

/* Адаптив */
@media (max-width: 1023px) {
    .rev-row { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .review-card { padding: 24px; border-radius: 18px; }
    .rev-platform-wrap { padding: 20px; border-radius: 20px; }
    .rev-widget-wrap { padding: 12px; overflow-x: auto; }
}

/* Слоган */
.word {
    opacity: 0;
    transform: translateY(30px);
    transition:
        all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.4s ease,
        text-shadow 0.4s ease;
}

.slogan-sub {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 1.8rem;
    color: white;
    font-weight: 500;
}

.word.animate-scroll {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(0.3s * var(--word-index, 1));
}

.slogan-sub.animate-scroll {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.9s;
}

.animate-scroll {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.8s ease-out;
}

.word-1 { font-size: 3.2rem; font-weight: 400; color: #9bbc76; }
.word-2 { font-size: 3.8rem; font-weight: 600; color: #b1c59a; }
.word-3 { font-size: 4.5rem; font-weight: 800; color: white;   }

.word::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    transform: scaleX(0);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

.word-1::after { background: linear-gradient(90deg, #a3c97d, #8fbc8f); }
.word-2::after { background: linear-gradient(90deg, #8fbc8f, var(--olive)); }
.word-3::after { background: linear-gradient(90deg, var(--olive), var(--olive-dark)); }

.word:hover          { transform: translateY(-5px) !important; text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); }
.word:hover::after   { transform: scaleX(1) !important; }

.slogan-sub:hover {
    background-color: rgba(59, 75, 59, 0.8) !important;
    transform: scale(1.03) !important;
}

.bg-dark-green { background-color: rgba(43, 54, 43, 0.7); }

.text-custom-xs { font-size: 0.85rem; }

@media (max-width: 1023px) {
    .slogan-main { flex-direction: column !important; gap: 15px !important; }
    .word        { display: block !important; text-align: center; width: 100%; margin-bottom: 15px; }
    .word:last-child { margin-bottom: 0; }
    .word-1 { font-size: 2.8rem; }
    .word-2 { font-size: 3.2rem; }
    .word-3 { font-size: 3.6rem; }
    .slogan-sub { font-size: 1.6rem; padding: 12px 20px; }
}

@media (max-width: 768px) {
    .word-1 { font-size: 2.5rem; }
    .word-2 { font-size: 2.8rem; }
    .word-3 { font-size: 3.2rem; }
    .slogan-sub { font-size: 1.4rem; padding: 12px 18px; }
}

@media (max-width: 480px) {
    .word-1 { font-size: 2.2rem; }
    .word-2 { font-size: 2.5rem; }
    .word-3 { font-size: 2.8rem; }
    .slogan-sub { font-size: 1.3rem; padding: 10px 16px; }
}

@media (max-width: 380px) {
    .word-1 { font-size: 2rem; }
    .word-2 { font-size: 2.2rem; }
    .word-3 { font-size: 2.4rem; }
    .slogan-sub { font-size: 1.2rem; padding: 8px 14px; }
}
