/* ============================================
   AGENT PROFILE (Страница команды)
   ============================================ */
.agent-profile {
    padding: 80px 0;
}

.team-intro {
    padding: 46px 0 20px;
}

.team-intro__label {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
}

.team-intro h1 {
    margin-bottom: 12px;
    color: var(--text-main);
    font-size: 34px;
    line-height: 1.2;
}

.team-intro p {
    max-width: 920px;
    color: var(--text-muted);
    line-height: 1.6;
}

.agent-card {
    background: var(--bg-surface);
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.agent-photo img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    aspect-ratio: 1;
    background: #eee;
}

.agent-info h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.agent-info h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.agent-info .position {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 5px;
}

.agent-info .subtitle {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.agent-info .contacts a,
.agent-info .contacts div {
    display: block;
    margin-bottom: 12px;
    color: var(--text-main);
    font-size: 15px;
}

.agent-info .contacts a:hover {
    color: var(--accent);
}

.agent-info .actions {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.agent-info .btn-primary,
.agent-info .btn-outline {
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: inline-block;
}

.agent-info .btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
}

.agent-info .btn-primary:hover {
    background: var(--accent-hover);
}

.agent-info .btn-outline {
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
}

.agent-info .btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

.agent-info .btn-outline.is-disabled,
.agent-info .btn-outline:disabled {
    opacity: 0.62;
    cursor: not-allowed;
    background: rgba(120, 84, 60, 0.08);
    border-color: rgba(120, 84, 60, 0.18);
    color: var(--text-muted);
}

/* === Agent Objects === */
.agent-objects {
    margin-top: 60px;
}

.agent-objects h2 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--text-main);
}

.office-team {
    margin-top: 28px;
}

.office-team h2 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--text-main);
}

.office-team-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.team-profile-card .agent-photo img {
    object-position: center;
}

.team-profile-card .agent-info h3 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.team-profile-card .position {
    margin-bottom: 18px;
}

.agent-photo--kashtanova img {
    object-position: center 20%;
}

.agent-photo--agamalieva img {
    object-position: center 18%;
}

.agent-photo--rusova img {
    object-position: center center;
}

.agent-photo--bryndikov img {
    object-position: center center;
}

.team-agent-objects-placeholder {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-muted);
    font-size: 14px;
}

.footer-cta .btn-primary {
    display: inline-block;
    text-decoration: none;
}

.objects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.object-card {
    background: var(--bg-surface);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.object-card:hover {
    transform: translateY(-5px);
}

.object-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #eee;
}

.object-card h3 {
    font-size: 16px;
    padding: 15px;
    color: var(--text-main);
}

.object-card .price {
    padding: 0 15px 15px;
    font-weight: 700;
    color: var(--accent);
}

/* === QR Modal === */
.qr-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.qr-modal.active {
    display: flex;
}

.qr-content {
    background: var(--bg-surface);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    max-width: 300px;
}

.qr-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 24px;
    color: var(--text-muted);
    background: none;
    border: none;
    padding: 0;
}

.qr-modal-close:hover {
    color: var(--text-main);
}

#qrCanvas {
    margin: 20px auto;
    display: block;
    max-width: 100%;
}

/* === Responsive === */
@media (max-width: 900px) {
    .agent-card {
        grid-template-columns: 1fr;
        padding: 25px;
    }

    .agent-photo {
        max-width: 300px;
        margin: 0 auto;
    }

    .agent-info h1 {
        font-size: 26px;
    }

    .agent-info h2 {
        font-size: 26px;
    }

    .team-profile-card .agent-info h3 {
        font-size: 26px;
    }

    .agent-info .actions {
        flex-direction: column;
    }

    .agent-info .btn-primary,
    .agent-info .btn-outline {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .agent-profile {
        padding: 40px 0;
    }

    .team-intro {
        padding: 30px 0 12px;
    }

    .team-intro h1 {
        font-size: 26px;
    }

    .agent-info h1 {
        font-size: 22px;
    }

    .agent-info h2 {
        font-size: 22px;
    }

    .team-profile-card .agent-info h3 {
        font-size: 22px;
    }

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

}

/* Premium team page polish */
.team-intro {
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.92), transparent 34%),
        linear-gradient(180deg, #fbf7f1 0%, #f4ecdf 100%);
    border-bottom: 1px solid rgba(120, 84, 60, 0.14);
}

.agent-profile {
    background: linear-gradient(180deg, #f7f1e8 0%, #fbf7f1 100%);
}

.agent-card,
.team-profile-card {
    border: 1px solid rgba(120, 84, 60, 0.16);
    box-shadow: 0 18px 50px rgba(47, 39, 35, 0.08);
}

.team-agent-objects-placeholder {
    border-radius: 14px;
    background: rgba(180, 77, 66, 0.08);
    padding: 14px 16px;
    border-top: 0;
}
