/* ═══════════════ ABOUT PAGE — UNIQUE STYLES ═══════════════ */

/* ─── HERO PHOTO ─── */
.about-hero .hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-hero-photo {
    position: relative;
    width: 340px;
    height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(212, 114, 126, 0.3), 0 0 80px rgba(212, 114, 126, 0.15);
    animation: fadeSlideUp 0.8s ease-out 0.3s both;
}

.about-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-hero-photo-glow {
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--clr-primary-light), var(--clr-accent-gold), var(--clr-primary-light));
    background-size: 300% 300%;
    z-index: -1;
    animation: glowRotate 6s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes glowRotate {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ─── STORY SECTION ─── */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-top: 16px;
}

.story-text p {
    margin-bottom: 20px;
    font-size: var(--fs-body);
    color: var(--clr-text);
    line-height: 1.8;
}

.story-quote blockquote {
    position: relative;
    background: var(--clr-surface-glass);
    border: 1px solid var(--clr-border);
    border-left: 4px solid var(--clr-primary);
    border-radius: var(--radius-md);
    padding: 32px 32px 32px 28px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

.story-quote blockquote .quote-icon {
    position: absolute;
    top: -12px;
    left: 20px;
    opacity: 0.5;
}

.story-quote blockquote p {
    font-family: var(--ff-display);
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    font-style: italic;
    color: var(--clr-text);
    line-height: 1.6;
}

/* ─── CERTIFICATE MINI-TIMELINE ─── */
.cert-timeline {
    position: relative;
    padding: 8px 0 8px 0;
    margin-top: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cert-timeline-line {
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--clr-primary-light), var(--clr-border));
    border-radius: 2px;
}

.cert-timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 16px 0 16px 130px;
    transition: all 0.3s ease;
    border-radius: var(--radius-sm);
}

.cert-timeline-item:hover {
    background: rgba(212, 114, 126, 0.04);
}

.cert-tl-year {
    position: absolute;
    left: 0;
    width: 88px;
    text-align: right;
    font-family: var(--ff-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--clr-primary);
    letter-spacing: 0.02em;
}

.cert-tl-dot {
    position: absolute;
    left: 94px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--clr-bg, #FDF6F0);
    border: 3px solid var(--clr-primary);
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 4px rgba(212, 114, 126, 0.1);
}

.cert-timeline-item:hover .cert-tl-dot {
    background: var(--clr-primary);
    box-shadow: 0 0 0 6px rgba(212, 114, 126, 0.2), 0 0 16px rgba(212, 114, 126, 0.3);
    transform: scale(1.2);
}

.cert-tl-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--clr-text);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.cert-timeline-item:hover .cert-tl-name {
    color: var(--clr-primary);
}

/* ─── CERTIFICATE SLIDER ─── */
.cert-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-top: 40px;
}

.cert-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cert-slider-track img {
    flex: 0 0 calc(100% / 3);
    width: calc(100% / 3);
    height: 320px;
    object-fit: contain;
    padding: 8px;
    border-radius: var(--radius-sm);
    background: var(--clr-surface);
}

.cert-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--clr-border);
    font-size: 1.5rem;
    color: var(--clr-primary);
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: var(--shadow-soft);
}

.cert-slider-btn:hover {
    background: var(--clr-primary);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.cert-slider-prev {
    left: 12px;
}

.cert-slider-next {
    right: 12px;
}

/* ─── WHY CARDS ─── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 16px;
}

.why-card {
    background: var(--clr-surface-glass);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-smooth);
}

.why-card:hover {
    border-color: var(--clr-primary-light);
    box-shadow: var(--shadow-elevated);
    transform: translateY(-6px);
}

.why-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 114, 126, 0.12), rgba(212, 167, 106, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.why-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--clr-primary);
}

.why-card h3 {
    font-size: clamp(1.18rem, 1.6vw, 1.3rem);
    margin-bottom: 8px;
}

.why-card p {
    color: var(--clr-text-light);
    line-height: 1.7;
}

/* ─── VERTICAL TIMELINE ─── */
.timeline {
    position: relative;
    padding: 40px 0 20px;
    margin-top: 16px;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--clr-border);
    transform: translateX(-50%);
    border-radius: 3px;
}

.timeline-line-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, var(--clr-primary), var(--clr-accent, #C6956C));
    border-radius: 3px;
    transition: height 0.05s linear;
    box-shadow: 0 0 12px rgba(212, 114, 126, 0.4);
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    width: 50%;
    padding: 0 48px 56px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.timeline-visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-left {
    left: 0;
    justify-content: flex-end;
    padding-right: 48px;
    padding-left: 0;
}

.timeline-left .timeline-content {
    text-align: left;
}

.timeline-right {
    left: 50%;
    justify-content: flex-start;
    padding-left: 48px;
    padding-right: 0;
}

/* ─── TIMELINE MARKER ─── */
.timeline-marker {
    position: absolute;
    top: 4px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--clr-bg, #FDF6F0);
    border: 3px solid var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 0 6px rgba(212, 114, 126, 0.12), 0 4px 16px rgba(212, 114, 126, 0.2);
    transition: all 0.4s ease;
}

.timeline-item.timeline-visible .timeline-marker {
    animation: markerPulse 2s ease-in-out 0.3s;
}

@keyframes markerPulse {
    0% {
        box-shadow: 0 0 0 6px rgba(212, 114, 126, 0.12), 0 4px 16px rgba(212, 114, 126, 0.2);
    }

    50% {
        box-shadow: 0 0 0 14px rgba(212, 114, 126, 0.08), 0 4px 24px rgba(212, 114, 126, 0.3);
    }

    100% {
        box-shadow: 0 0 0 6px rgba(212, 114, 126, 0.12), 0 4px 16px rgba(212, 114, 126, 0.2);
    }
}

.timeline-marker svg {
    width: 20px;
    height: 20px;
}

.timeline-left .timeline-marker {
    right: -22px;
}

.timeline-right .timeline-marker {
    left: -22px;
}

/* ─── TIMELINE CONTENT CARD ─── */
.timeline-content {
    background: var(--clr-surface-glass);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-smooth);
    position: relative;
    max-width: 420px;
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: 14px;
    width: 12px;
    height: 12px;
    background: var(--clr-surface-glass);
    border: 1px solid var(--clr-border);
    transform: rotate(45deg);
}

.timeline-left .timeline-content::after {
    right: -7px;
    border-left: none;
    border-bottom: none;
}

.timeline-right .timeline-content::after {
    left: -7px;
    border-right: none;
    border-top: none;
}

.timeline-content:hover {
    border-color: var(--clr-primary-light);
    box-shadow: var(--shadow-elevated);
    transform: translateY(-3px);
}

.timeline-num {
    font-family: var(--ff-display);
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--clr-primary-light), var(--clr-accent, #C6956C));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1;
}

.timeline-content h3 {
    font-size: clamp(1.18rem, 1.6vw, 1.3rem);
    margin-bottom: 6px;
}

.timeline-content p {
    color: var(--clr-text-light);
    line-height: 1.7;
    font-size: var(--fs-small);
}

.services-belief {
    margin-top: 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(212, 114, 126, 0.06), rgba(212, 167, 106, 0.04));
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 32px 48px;
}

.services-belief p {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.8;
    color: var(--clr-text);
}

/* ─── SKILLS GRID ─── */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 16px;
}

.skill-card {
    background: var(--clr-surface-glass);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 36px 24px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all var(--transition-smooth);
}

.skill-card:hover {
    border-color: var(--clr-primary-light);
    box-shadow: var(--shadow-glow);
    transform: translateY(-6px);
}

.skill-icon {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 114, 126, 0.1), rgba(212, 167, 106, 0.06));
    margin-left: auto;
    margin-right: auto;
    animation: skillBounce 3s ease-in-out infinite;
}

@keyframes skillBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.skill-card h3 {
    font-size: clamp(1.18rem, 1.6vw, 1.3rem);
    margin-bottom: 8px;
}

.skill-card p {
    color: var(--clr-text-light);
    font-size: var(--fs-small);
    line-height: 1.6;
}

/* ─── GEO GRID ─── */
.geo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 16px;
}

.geo-card {
    background: var(--clr-surface-glass);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 32px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all var(--transition-smooth);
}

.geo-card:hover {
    border-color: var(--clr-primary-light);
    box-shadow: var(--shadow-elevated);
    transform: translateY(-4px);
}

.geo-card--online {
    background: linear-gradient(135deg, rgba(212, 114, 126, 0.08), rgba(168, 189, 160, 0.08));
    border-color: var(--clr-sage);
}

.geo-card--online:hover {
    border-color: var(--clr-sage);
    box-shadow: 0 0 40px rgba(168, 189, 160, 0.2);
}

.geo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.geo-card h3 {
    font-size: 1.12rem;
    font-weight: 600;
}

/* ═══════════════ ANIMATIONS ═══════════════ */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
    .cert-timeline-line {
        left: 85px;
    }

    .cert-tl-year {
        width: 73px;
        font-size: 1rem;
    }

    .cert-tl-dot {
        left: 79px;
    }

    .cert-timeline-item {
        padding-left: 115px;
    }

    .cert-tl-name {
        padding-left: 16px;
        font-size: 1.05rem;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 60px !important;
        padding-right: 0 !important;
    }

    .timeline-left .timeline-content {
        text-align: left;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-left .timeline-marker,
    .timeline-right .timeline-marker {
        left: -2px !important;
        right: auto !important;
    }

    .timeline-left .timeline-content::after,
    .timeline-right .timeline-content::after {
        left: -7px;
        right: auto;
        border-right: none;
        border-top: none;
        border-left: 1px solid var(--clr-border);
        border-bottom: 1px solid var(--clr-border);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .geo-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cert-slider-track img {
        flex: 0 0 50%;
        width: 50%;
    }
}

@media (max-width: 768px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cert-timeline-line {
        left: 75px;
    }

    .cert-tl-year {
        width: 63px;
        font-size: 0.95rem;
    }

    .cert-tl-dot {
        left: 69px;
    }

    .cert-timeline-item {
        padding-left: 100px;
    }

    .cert-tl-name {
        font-size: 1rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        padding-left: 48px !important;
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }

    .geo-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cert-slider-track img {
        flex: 0 0 100%;
        width: 100%;
        height: 260px;
    }

    .about-hero-photo {
        width: 260px;
        height: 320px;
    }

    .about-hero .container {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .about-hero .hero-visual {
        order: -1;
        margin-bottom: 24px;
    }

    .about-hero .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-hero .hero-actions {
        justify-content: center;
    }

    .services-belief {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .cert-timeline-line {
        left: 60px;
    }

    .cert-tl-year {
        width: 48px;
        font-size: 0.95rem;
    }

    .cert-tl-dot {
        left: 54px;
    }

    .cert-timeline-item {
        padding-left: 85px;
    }

    .cert-tl-name {
        font-size: 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .geo-grid {
        grid-template-columns: 1fr;
    }

    .about-hero-photo {
        width: 220px;
        height: 280px;
    }
}

/* ═══════════════ REVIEWS GALLERY ═══════════════ */

/* ─── Grid ─── */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 32px;
}

/* ─── Item ─── */
.review-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

/* ─── Button wrapper (fills the cell) ─── */
.review-btn {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: none;
    padding: 0;
    background: var(--clr-surface);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: none;
    border: 1px solid var(--clr-border);
    transition: box-shadow var(--transition-smooth), transform var(--transition-smooth);
}

.review-btn:hover {
    box-shadow: 0 8px 32px rgba(212, 114, 126, 0.22);
    transform: translateY(-3px);
    border-color: var(--clr-primary-light);
}

/* ─── Photo ─── */
.review-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-smooth);
}

.review-btn:hover img {
    transform: scale(1.05);
}

/* ─── Hover overlay ─── */
.review-overlay {
    position: absolute;
    inset: 0;
    background: rgba(212, 114, 126, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-smooth);
    backdrop-filter: blur(2px);
}

.review-btn:hover .review-overlay {
    opacity: 1;
}

.review-overlay svg {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transform: scale(0.8);
    transition: transform var(--transition-smooth);
}

.review-btn:hover .review-overlay svg {
    transform: scale(1);
}

/* ═══════════════ LIGHTBOX ═══════════════ */
.reviews-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviews-lightbox[hidden] {
    display: none;
}

/* When open — animate in */
.reviews-lightbox.rlb-open {
    display: flex;
    animation: rlbFadeIn 0.3s ease both;
}

@keyframes rlbFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ─── Backdrop ─── */
.rlb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22, 12, 14, 0.93);
    backdrop-filter: blur(6px);
}

/* ─── Inner (photo + controls) ─── */
.rlb-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 60px 80px;
}

/* ─── Photo ─── */
.rlb-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    animation: rlbImgIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes rlbImgIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ─── Nav buttons (prev / next) ─── */
.rlb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: background var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
    z-index: 2;
}

.rlb-nav:hover {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
    box-shadow: var(--shadow-glow);
}

.rlb-prev {
    left: 20px;
}

.rlb-next {
    right: 20px;
}

/* ─── Close button ─── */
.rlb-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: background var(--transition-smooth), border-color var(--transition-smooth);
    z-index: 2;
}

.rlb-close:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ─── Counter badge ─── */
.rlb-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    padding: 6px 18px;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--ff-body);
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    z-index: 2;
}

/* ═══════════════ REVIEWS RESPONSIVE ═══════════════ */
@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .rlb-inner {
        padding: 52px 56px;
    }

    .rlb-nav {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
    }

    .rlb-prev {
        left: 8px;
    }

    .rlb-next {
        right: 8px;
    }
}

@media (max-width: 480px) {

    /* Галерея — 2 колонки с квадратами; тап открывает lightbox со свайпом */
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .rlb-inner {
        padding: 48px 12px;
    }
}